On 7/20/06, Adrian Neaga <[EMAIL PROTECTED]> wrote:
I'm thinking of creating a consumer for every message i get and close it cleanly after it processed the message. Do you know how expensive is to create a consumer like that, that would create a new connection and session every time ?
http://incubator.apache.org/activemq/how-do-i-use-jms-efficiently.html I'd recommend creating a collection of sessions & consumers on startup - or try using Jencks which can pool them for you -- James ------- http://radio.weblogs.com/0112098/
