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.
Show replies by date