Hello All,
I am using 7.1.1.Final with a merge of code related to https://issues.jboss.org/browse/AS7-4330.
I keep Getting the error -
javax.jms.JMSException: Could not create a session: IJ000453: Unable to get managed connection for java:/JmsXA at org.hornetq.ra.HornetQRASessionFactoryImpl.allocateConnection(HornetQRASessionFactoryImpl.java:881) at org.hornetq.ra.HornetQRASessionFactoryImpl.createSession(HornetQRASessionFactoryImpl.java:470)
basically the patten in my app is that at the beginning of some activity i create a connection and in the finally block i make sure to close all the connections.
I added to the class that allocates and closes the connections a counter for the connections created and closed.
so the situation is as follows -
I don't see a connection leak - the number of open connections veries between 5 to 30+ and I get the first error when my app run about 11 minutes and the open connections count reduced from 29 to 14.
and i keep getting the error.
I looked around in my code for possible places where i get some exception and not report it - but didn't find any thing.
basically I'm stuck now because I can't figure out where to look for what went wrong.
attached are Thread dump and also log files that take com.arjuna and org.hornetq in TRACE level - since the server started to the time where i got the first error
Thanks,
Noa
Found the problem - turns out that the fix merge I mentioned earlier wasn't actually present in my env and this is the root cause