I am dropping messages on an MDB in a loop and I can see in my logs that I keep running out of available connections.
Caused by: com.sun.messaging.jms.JMSException: MQRA:CFA:allocation failure:createConnection:Error in allocating a connection. Cause: In-use connections equal max-pool-size and expired max-wait-time. Cannot allocate more connections.
at com.sun.messaging.jms.ra.ConnectionFactoryAdapter._allocateConnection(ConnectionFactoryAdapter.java:209)
at com.sun.messaging.jms.ra.ConnectionFactoryAdapter.createConnection(ConnectionFactoryAdapter.java:162)
at com.sun.messaging.jms.ra.ConnectionFactoryAdapter.createConnection(ConnectionFactoryAdapter.java:144)
After dropping each message on the queue I am closing all the connections but still I do not know how I run out of available connections.
I am thinking of increasing the pool size instead. But havent been able to find that setting.
Can anyone guide me how to change that setting for the Glassfish server.