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 <[EMAIL PROTECTED]> 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/

Reply via email to