Hi, PooledConnectionFactory is intended to be used for this purpose. Just configure it with appropriate ActiveMQConnectionFactory and you're good to go. For example:
PooledConnectionFactory pcf = new PooledConnectionFactory(); pcf.setConnectionFactory(new ActiveMQConnectionFactory("tcp://localhost:61616")); BTW. You'll need activemq-pool jar in your classpath Cheers -- Dejan Bosanac - http://twitter.com/dejanb Open Source Integration - http://fusesource.com/ ActiveMQ in Action - http://www.manning.com/snyder/ Blog - http://www.nighttale.net On Mon, Apr 5, 2010 at 8:08 AM, nnanda <nna...@live.in> wrote: > > Hi, > > Can I use ActiveMQ connection pool at the client side? My deployment is > something shown below: > > 1. My web service application (a WAR file) is running inside one instance > of > JBoss 5.1 AS. This will put a data in the Queue. > > 2. Another instance of JBoss 5.1 AS runs on another JVM holds a Queue > Provider (basically JBoss Messaging or HornetQ). There is an MDB deployed > here which will process the data from the queue. > > My question is related to use ActiveMQ's connection pooling facility from > instance 1. Since, both client and MDB are not inside same app server, I > cannot use the JCA connection pooling. And I wanted to pool the JMS > connection factory, sessions at client end. > > Please let me know if this is possible, and if so, how. > > Thanks, > Niranjan > -- > View this message in context: > http://old.nabble.com/Use-ActiveMQ-Connection-Pool-tp28137486p28137486.html > Sent from the ActiveMQ - User mailing list archive at Nabble.com. > >