activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nereus Chen <nereus.c...@gmail.com>
Subject Re: Acknowledge messages
Date Mon, 28 Mar 2011 11:25:53 GMT
I suggest you to use a session independently in every thread which is
contained  by a excutor.

and cannot share the session by multi threads.

In the thread  you can use the consumer.receive()  method  rather then the
linstener's  onMessage().



--
View this message in context: http://activemq.2283324.n4.nabble.com/Acknowledge-messages-tp3411289p3411383.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Mime
View raw message