activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jgunz <>
Subject Re: ActiveMQ 4.1.1 server freezes
Date Thu, 08 May 2008 19:41:06 GMT

Daryl Richter-3 wrote:
> Do you open and close multiple sessions within the same consumer thread?
> We have seen that this can very reliably cause the broker to lock up.
> It is best to open a single session per thread and close all the way out 
> when done consuming.

Is it wrong to open multiple sessions from the same thread? 

What we typically do is in one of our application threads, create sessions
and register a single consumer with a registered message listener on each.
Likewise we'd create a separate session for each producer we'd need.

View this message in context:
Sent from the ActiveMQ - User mailing list archive at

View raw message