You can either use ActiveMQs PooledConnectionFactory [1] or Springs CachingConnectionFactory [2]. Potentially also Springs SingleConnectionFactory [3].
I would recommend [1]. You find it in the $AMQ_HOME/lib/optional/activemq-pool.jar file. [1] http://activemq.apache.org/maven/5.7.0/activemq-pool/apidocs/org/apache/activemq/pool/PooledConnectionFactory.html [2] http://static.springsource.org/spring/docs/3.0.5.RELEASE/api/org/springframework/jms/connection/CachingConnectionFactory.html [3] http://static.springsource.org/spring/docs/3.0.5.RELEASE/api/org/springframework/jms/connection/SingleConnectionFactory.html Torsten Mielke tors...@fusesource.com tmielke.blogspot.com On Nov 15, 2012, at 10:34 AM, Michal Singer wrote: > Hi, according to this link: > > http://activemq.apache.org/jmstemplate-gotchas.html > > there are problems with using the > org.apache.activemq.ActiveMQConnectionFactory > > and a pooled one should be used instead. > > I couldn't find the PooledConnectionFactory anywhere. > > Any recommendations on which pool should be used and where it is located? > > thanks