You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by Paul French <pa...@frenchiesystems.com> on 2006/07/28 12:57:57 UTC

Jencks and jmsTemplate

Okay I've learned from previous posts Jencks pools connection, sessions, and
consumers/producers.

If I use the Jencks with the JmsTemplate will the jmsTemplate pick up the
pooled producers and consumers?

Assuming this is the case to help my understanding how is this done under
the hood?

I'm guessing that Jencks wraps a session and subsequent calls to create a
producer or consumer on the session object are actually pulled from the
pool? 


-- 
View this message in context: http://www.nabble.com/Jencks-and-jmsTemplate-tf2014786.html#a5537460
Sent from the ActiveMQ - User forum at Nabble.com.


Re: Jencks and jmsTemplate

Posted by James Strachan <ja...@gmail.com>.
On 7/28/06, Paul French <pa...@frenchiesystems.com> wrote:
>
> Okay I've learned from previous posts Jencks pools connection, sessions, and
> consumers/producers.
>
> If I use the Jencks with the JmsTemplate will the jmsTemplate pick up the
> pooled producers and consumers?

Producers yes, though I'd not use JmsTemplate for consuming, instead
use Jencks' Message Driven POJOs...

http://jencks.org/Message+Driven+POJOs

> Assuming this is the case to help my understanding how is this done under
> the hood?

Jencks creates a proxy ConnectionFactory which does the pooling for
you (at least for sending - consuming is a bit different)

> I'm guessing that Jencks wraps a session and subsequent calls to create a
> producer or consumer on the session object are actually pulled from the
> pool?

Yes

-- 

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