From robert.nicholson at gmail.com Sun Oct 18 07:55:35 2009 From: robert.nicholson at gmail.com (Robert Nicholson) Date: Sun, 18 Oct 2009 06:55:35 -0500 Subject: [hornetq-users] Does hornetq let you acknowledge from a different thread? Message-ID: If you have a pattern where you have async consumption thru message listener but you perform that actual processing in a worker thread is it possible to acknowledge the message in the worker thread with hornetq? This is something JMS generally doesn't allow you to do and so you have a possibility of work still be queued for work in a thread pool and having already acknowledged the message from the queue. In the event of an interruption it's possible to have lost messages. In order to ensure that I can process my message in a thread pool and I have maintain state in a database which is an additional cost that I have per message and one I'm not comfortable with. I would much prefer a solution that allows me to perform my work in a different thread but acknowledge the message only when I know I've processed.