Hi all

I have some problems understanding how connection/session
pooling with jencks works, I would apreciate if someone could give me 
some help...


I understand the use of maxSessions on an activationspec, and also
what the threadpool attribute of a JCAContainer is for. 
What I don't get, is why if I specify maxSessions=1 I still
see that messages are consumed by multiple threads (looking 
at the logs). This is in principle fine with me, as threads are retrieved
by a pool but reading this 
http://www.nabble.com/-activemq-user--maxSessions-limits-messages-fetched--tf254599.html#a773237
it seems that I should see always the same one consuming messages.

Another thing about pooling: why I get always
a single subscription on  a queue, even if pooling the listeners with a 
TargetSourceMessageListener? What is the point of having a pool
of identical stateless listeners if they all share the same connection?

My primary objective is to maximize throughput, thus I'd like to have
a pool of listeners which consume messages using multiple connections,
is it possible to do so using a single JCAConnector or I have to 
statically declare more of them?

Wrapping up, are these two arguments (tweaking maxSessions, threadPool and
such, and 
having more parallelism) related?

I hope someone can help me on this, it's pretty hard to tune a system
without understanding the effect of its parameters...

Thanks a lot
Francesco

 
-- 
View this message in context: 
http://www.nabble.com/Configuring-session-connection-pooling-to-maximize-throughput-tf2925304.html#a8177244
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Reply via email to