I ended up patching ServerSessionPoolImpl, so it would block and wait for the session instead of releasing the connection. I even managed to cherrypick the commit for you on top of 5.10: https://github.com/pdudits/activemq/tree/sync-session-pool-5.10.0
Good luck! ----- --- Patrik Dudits -- View this message in context: http://activemq.2283324.n4.nabble.com/Endpoint-factory-ClientID-problems-during-deployment-on-Glassfish-tp4667751p4691513.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.