That applies to the application thread only - it's valid to call message.acknowlede() from a message listener (for a session using client based acknowledgement)

cheers,

Rob
On 1 Jan 2007, at 11:39, Sagi Mann wrote:


Hi all,
The JMS specs say that a session can only be used inside a single thread. If I handle consumed messages asynchronously, and call message.acknowledge(),
doesn't this violate the single-thread specification?
Thanks,
--
View this message in context: http://www.nabble.com/Asynchronous- dispatch-question-tf2903928.html#a8113066
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Reply via email to