On 02/10/2016 04:53 PM, Ramababu Bendalam wrote: > HI Tim, > > Thank you for your reply. I have tried using pooled connections, but i do > not find any option to get the existing connections. If you have any code > related to that can you share it. Also please let me know how to use the > reference of the existing connection using code. > > > > -- > View this message in context: > http://activemq.2283324.n4.nabble.com/Unable-to-consume-all-messages-from-the-existing-connection-tp4707311p4707403.html > Sent from the ActiveMQ - User mailing list archive at Nabble.com. > Reference the API Docs to see what's available: http://activemq.apache.org/maven/apidocs/org/apache/activemq/jms/pool/PooledConnectionFactory.html
Use Google to search on ActiveMQ Connection Pooling and read the tons of questions on Stackoverflow and other blog posts that have already covered the usage very very well. Or you can cast your eyes on the unit tests for the connection pooling code: https://github.com/apache/activemq/tree/master/activemq-jms-pool/src/test/java/org/apache/activemq/jms/pool -- Tim Bish twitter: @tabish121 blog: http://timbish.blogspot.com/