activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul French <>
Subject Re: jencks or spring 2.0
Date Thu, 27 Jul 2006 15:11:13 GMT

Thanks James, Judging from the mailing lists you are a very busy man!!

I think you misunderstood my question?

Does Jencks pool sessions OR connections when using JMS?

Using Spring SingleConnectionFactory we reuse the same connection. However
Spring will create a new session and consumer/producer on the fly when using
the JmsTemplate. Hence my question:

Is a new session object fairly lightweight? (from the point of view of
creating it)

Jencks pools sessions or connections (??) and AFAIK a
session,producer/consumer are not thread safe.

Hence using Jencks would you not still have to create a producer/consumer on
the fly for each of your working threads?

View this message in context:
Sent from the ActiveMQ - User forum at

View raw message