You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by Sophia Wright <so...@gmail.com> on 2013/11/28 12:05:48 UTC

Activemq generic jms pooledConnectionFactory

Does ActiveMQ PooledConnectionfactory have any advantage over generic
jms-pool   
https://github.com/apache/activemq/blob/trunk/activemq-jms-pool/src/main/java/org/apache/activemq/jms/pool/PooledConnectionFactory.java
<https://github.com/apache/activemq/blob/trunk/activemq-jms-pool/src/main/java/org/apache/activemq/jms/pool/PooledConnectionFactory.java>  
-- in terms of configuration, performance etc? 


Thanks,
Sophia



--
View this message in context: http://activemq.2283324.n4.nabble.com/Activemq-generic-jms-pooledConnectionFactory-tp4674906.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Re: Activemq generic jms pooledConnectionFactory

Posted by Gary Tully <ga...@gmail.com>.
there are two differences in the ActiveMQ variant
1)  it makes use of  the non standard
org.apache.activemq.ActiveMQConnection#addTransportListener
to expire connections that get transport connections due to a
disconnect from the broker

This enables earlier detection of failures b/c these connections will
be removed from the pool.

2) it uses a ActiveMQ callback to cleanup any temp destinations that
have not been deleted when the connection
is returned to the pool.

Other than that, they share the same code.

On 28 November 2013 11:05, Sophia Wright <so...@gmail.com> wrote:
> Does ActiveMQ PooledConnectionfactory have any advantage over generic
> jms-pool
> https://github.com/apache/activemq/blob/trunk/activemq-jms-pool/src/main/java/org/apache/activemq/jms/pool/PooledConnectionFactory.java
> <https://github.com/apache/activemq/blob/trunk/activemq-jms-pool/src/main/java/org/apache/activemq/jms/pool/PooledConnectionFactory.java>
> -- in terms of configuration, performance etc?
>
>
> Thanks,
> Sophia
>
>
>
> --
> View this message in context: http://activemq.2283324.n4.nabble.com/Activemq-generic-jms-pooledConnectionFactory-tp4674906.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.



-- 
http://redhat.com
http://blog.garytully.com