Hi Mike, good idea. I still have to do some testing, but on a first glance, I saw that in the JUnit test, they never close a created connection.
I thought that after getting a connection from the PooledConnectionFactory with connection = pooledConnectionFactory.createConnection() and having finished the work (message sent), you have to call connection.close() to give the connection back to the connection pool. Is that correct? Or does a connection.close() close the connection to the broker? That would explain why on each createConnection(), there is a new entry in the log that a connection to the broker has been made, since connections are never re-used. In this case it would be correct to only close the session, but leave the connection open. Cheers, Jochen -- View this message in context: http://activemq.2283324.n4.nabble.com/PooledConnectionFactory-createConnection-results-in-log-entry-Successfully-connected-to-tp4728188p4728322.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.