You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by Sagi Mann <sa...@gmail.com> on 2007/01/04 15:21:16 UTC

producer usage

Hi,
Is there a session pool implementation somewhere inside activemq so they
don't have to be recreated for each producer (assuming they reside on
differnet threads)? My idea was for the app threads to get sessions from a
pool, send some messages, and return the session to the pool for other
threads to use.

Is this "legitimate" from JMS POV? What does JMS spec say about using a
session outside the thread that created it ASSUMING that no other thread
tries to use it at that time?


Thanks.

-- 
View this message in context: http://www.nabble.com/producer-usage-tf2919724.html#a8159951
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Re: producer usage

Posted by James Strachan <ja...@gmail.com>.
If you are just sending and not consuming, you can use this JMS
provider which pools under the covers (and so works nicely with
Spring's JmsTemplate)

http://incubator.apache.org/activemq/maven/activemq-core/apidocs/org/apache/activemq/pool/PooledConnectionFactory.html



On 1/4/07, Sagi Mann <sa...@gmail.com> wrote:
>
> Hi,
> Is there a session pool implementation somewhere inside activemq so they
> don't have to be recreated for each producer (assuming they reside on
> differnet threads)? My idea was for the app threads to get sessions from a
> pool, send some messages, and return the session to the pool for other
> threads to use.
>
> Is this "legitimate" from JMS POV? What does JMS spec say about using a
> session outside the thread that created it ASSUMING that no other thread
> tries to use it at that time?
>
>
> Thanks.
>
> --
> View this message in context: http://www.nabble.com/producer-usage-tf2919724.html#a8159951
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>
>


-- 

James
-------
http://radio.weblogs.com/0112098/