I am wondering what the best practices are for session management. I will be sending messages every few seconds from a couple different threads. Right now I am opening a new session for each message but I am wondering if that could slow things down (obviously every couple seconds isn't a big deal, but what if it were much quicker and more threads). Would it be better to keep a single session open for every write? Or maybe a thread-local session? Or should I just keep doing what I am doing and closing the session as soon as I am done sending a message?
Thanks, -Brandon --------------------------------------------------------------------- Apache Qpid - AMQP Messaging Implementation Project: http://qpid.apache.org Use/Interact: mailto:[email protected]
