activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gary Tully <>
Subject Re: Using the PooledConnectionFactory programatically (no Spring implementation)
Date Tue, 07 Feb 2012 15:19:08 GMT
u don't seem to be missing anything, a single factory and multiple
calls to createConnection/close will reuse a single connection.

On 6 February 2012 18:21, io42 <> wrote:
> I'm trying to use the PooledConnectionFactoray to create a single connection
> programatically that can be reused at various places in my application.
> This comment  says that wrapping a PooledConnectionFactory in a singleton
> will defeat the purpose of using the PooledConnectionFactory, but I'm
> uncertain as to why this is true.  Won't instantiating multiple
> PooledConnectionFactory objects result in more than one Connection being
> created? What am I missing?
> --
> View this message in context:
> Sent from the ActiveMQ - Dev mailing list archive at


View raw message