6 Replies Latest reply on Jan 26, 2012 7:57 AM by ataylor

    how to configure max pool size

    mandarbk

      How can I specify min-pool-size and max-pool-size for hornetq resource adapter in JBoss 7 ?

       

      I can see a 'resoruce-adapter' element in the schema, but looks like it is used only for custom resource adapaters.Since hornetq is integrated as a default JMS provider in JBoss 7, I can not specify the 'archive' element for resource-adapater schema and the archive configuration is madatory.

       

      At times, I get an exception in the log something like... "Unable to get managed connection within a maximum specified time period". My application is using JMS quite extensively, so I presume that this could be an issue with connection pool getting exhausted. I am still investigating the connection leakage.

        • 1. Re: how to configure max pool size
          ataylor

          Those are settings on the MDB not the RA, your better of asking in the AS7 forum

          • 2. Re: how to configure max pool size
            mandarbk

            Hi Andy,

             

            Are you sure? I am not talking about the MDB instance pooling here.

            I have following configuration in the XML,

             

             

             

             

             

             

             

             

             

            <pooled-connection-factory name="hornetq-ra">

             

             

            <transaction mode="xa"/>

             

             

            <connectors>

             

             

            <connector-ref connector-name="in-vm"/>

             

             

            </connectors>

             

             

            <entries>

             

             

            <entry name="java:/JmsXA"/>

             

             

            </entries>

             

             

            </pooled-connection-factory>

             

             

            I have a generic publisher that is responsible for sending the JMS messages.The stacktrace indicates  that "Unable to get managed connection..." error encounters at the point when publiher invokes connectionFactory.getConnection()....

            • 3. Re: how to configure max pool size
              ataylor

              Yes I am sure, I wrote the Resource Adapter . This will probably be part of the ejb3 subsystem.

              • 4. Re: how to configure max pool size
                ataylor

                actually, just by looking at the standalone-full.xml file I can see the following

                 

                 

                            <pools>

                                <bean-instance-pools>

                                    <strict-max-pool name="slsb-strict-max-pool" max-pool-size="20" instance-acquisition-timeout="5" instance-acquisition-timeout-unit="MINUTES"/>

                                    <strict-max-pool name="mdb-strict-max-pool" max-pool-size="20" instance-acquisition-timeout="5" instance-acquisition-timeout-unit="MINUTES"/>

                                </bean-instance-pools>

                            </pools>

                • 5. Re: how to configure max pool size
                  mandarbk

                  Ok. I am a little bit confused here.

                   

                  Will this XML configuration control the number of JMS connections being returned from the connectionFactory("java:/jmsXA")?

                  Or, Will it control the MDB's instance polling ?

                  • 6. Re: how to configure max pool size
                    ataylor

                    like I say, this is AS stuff, your nbetter of asking in the AS7 forumm this has nothing to do with HornetQ, however I would asume that its for the mdb pool size