You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by abhijith <to...@gmail.com> on 2016/02/17 20:52:19 UTC

Apache Artemis pooling

Hi,

I am new to Apache artemis and was looking to pool jms related objects for
producer and consumer.  We are using embedded Jetty container and do not
really want to go JCA route.  Is there anything equivalent of
org.apache.activemq.pool.PooledConnectionFactory in Artemis?  

I searched through codebase and examples, but could not find any standard
way.  Only example I could find is given below and this is using
PooledConnectionFactory from activemq directly. 
tests/activemq5-unit-tests/src/test/java/org/apache/activemq/pool/JmsSendReceiveTwoConnectionsWithSenderUsingPoolTest.java

I read below documentation on HornetQ: 
https://developer.jboss.org/wiki/ShouldIcacheJMSconnectionsandJMSsessions.  

Does the same semantics apply for Artemis as well?  Any help is greatly
appreciated.

Thanks
Abhi



--
View this message in context: http://activemq.2283324.n4.nabble.com/Apache-Artemis-pooling-tp4707663.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Re: Apache Artemis pooling

Posted by abhijith <to...@gmail.com>.
Appreciate prompt response.  I have to implement pool for my requirement and
will try to contribute it once I am done.  Thanks



--
View this message in context: http://activemq.2283324.n4.nabble.com/Apache-Artemis-pooling-tp4707663p4707675.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Re: Apache Artemis pooling

Posted by Clebert Suconic <cl...@gmail.com>.
>> Is there anything equivalent of org.apache.activemq.pool.PooledConnectionFactory in Artemis?

not **yet** :) (accepting contributions though :P )


That wiki page is generic really. Creating / deleting connections on
any technology is an expensive process that will create a socket,
require a round trip TCP-IP communication, beyond the Java POJOs
itself that will need to be stored to support the connection.


It makes sense to cache it.. for the Jetty case it makes perfect sense
to implement the artemis-pool.


On Wed, Feb 17, 2016 at 2:52 PM, abhijith <to...@gmail.com> wrote:
> Hi,
>
> I am new to Apache artemis and was looking to pool jms related objects for
> producer and consumer.  We are using embedded Jetty container and do not
> really want to go JCA route.  Is there anything equivalent of
> org.apache.activemq.pool.PooledConnectionFactory in Artemis?
>
> I searched through codebase and examples, but could not find any standard
> way.  Only example I could find is given below and this is using
> PooledConnectionFactory from activemq directly.
> tests/activemq5-unit-tests/src/test/java/org/apache/activemq/pool/JmsSendReceiveTwoConnectionsWithSenderUsingPoolTest.java
>
> I read below documentation on HornetQ:
> https://developer.jboss.org/wiki/ShouldIcacheJMSconnectionsandJMSsessions.
>
> Does the same semantics apply for Artemis as well?  Any help is greatly
> appreciated.
>
> Thanks
> Abhi
>
>
>
> --
> View this message in context: http://activemq.2283324.n4.nabble.com/Apache-Artemis-pooling-tp4707663.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.



-- 
Clebert Suconic