activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Strachan" <james.strac...@gmail.com>
Subject Re: Consumer does not receive anything after session.rollback()
Date Thu, 20 Jul 2006 07:29:10 GMT
On 7/20/06, Adrian Neaga <aneaga@tacitknowledge.com> 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/

Mime
View raw message