pls clarify: when async dispatch is enabled, each onMessage event is handled by a different thread which is created by the session. Correct? but what happens if those messages are further passed on to some app thread (the original threads are long dead)? Can the app thread still call msg.ack()? Thanks.
rajdavies wrote: > > 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. >> > > > -- View this message in context: http://www.nabble.com/Asynchronous-dispatch-question-tf2903928.html#a8113836 Sent from the ActiveMQ - User mailing list archive at Nabble.com.
