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: http://www.nabble.com/ActiveMQ-4.1.1-server-freezes-tp17104702s2354p17134918.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.