-
1. Re: how to configure max pool size for hornetq resource adapter
sfcoy Jan 27, 2012 5:21 AM (in response to mandarbk)Does MDB maxSession limit of 20? have the answer you're looking for?
-
2. Re: how to configure max pool size for hornetq resource adapter
mandarbk Jan 27, 2012 5:32 AM (in response to sfcoy)No.It is not just about MDBs.
Imagine a plain java class calling connectionFacory.getConnection(), where the connectionFactory is JMS connection factory("java:/jmsXA").
Let's say multiple session beans are using this class for publishing messages to a queue/topic.Under high load conditions, assume that say 100 session bean instances are concurrently attempting to get the connection from JMS connection factory.
If the default limit is set to say 50, the remaining session beans are bound to get an exception... something like ... Unable to get Managed connection within a specified timeout period of XXXXms.
I am loooking for a configuration where I can alter the value of maximum connections that can be retrieved from the connectionfactory.Based on optimum load conditions, I can decide the value suitable for my environment.
-
3. Re: how to configure max pool size for hornetq resource adapter
sfcoy Jan 27, 2012 5:59 AM (in response to mandarbk)I see. IronJacamar is the JCA implementation which would be managing this. Have you had a look over there?
-
4. Re: how to configure max pool size for hornetq resource adapter
mandarbk Jan 27, 2012 6:30 AM (in response to sfcoy)I would have expected the configuration to be part of the standalone.xml.I did browse through all the schemas, but could not find it.
I will take a look at Ironjacamar and check out if I can find the solution.
Thanks Stephen.
-
5. Re: how to configure max pool size for hornetq resource adapter
jesper.pedersen Jan 27, 2012 8:30 AM (in response to mandarbk)The HornetQ resource adapter is embedded inside the application server and hence the configuration is done through the messaging subsystem.
Any parameters should be in the XSD, if not the HornetQ team should be able to help you.
-
6. Re: how to configure max pool size for hornetq resource adapter
mandarbk Jan 27, 2012 12:05 PM (in response to jesper.pedersen)I have double-checked the messaging XSDs. Did not find anything for configuring max-pool-size ?
I would have expected 'pooled-connection-factory' schema to have a provision for managing pool size.
I had already posted the same issue in HornetQ user group. The response I received indicates that hornetq guys expects pool configuration to be AS side isssue.https://community.jboss.org/thread/177917
-
7. Re: how to configure max pool size for hornetq resource adapter
jaikiran Jan 27, 2012 11:27 PM (in response to mandarbk)In the other thread you mention about a exception. Can you post that entire exception stacktrace?
-
8. Re: how to configure max pool size for hornetq resource adapter
jmesnil Apr 12, 2013 9:20 AM (in response to mandarbk)Mandar Kulkarni wrote:
I have double-checked the messaging XSDs. Did not find anything for configuring max-pool-size ?
I would have expected 'pooled-connection-factory' schema to have a provision for managing pool size.