Hi all,

I'm trying to understand how to use the INDIVIDUAL_ACKNOWLEDGE mode
properly.

What I am trying to do is this:

1.  Message Producer sends messages to a queue
2.  Message Consumer receives individual message and confirms successful
processing of each individual message.
3.  If Message Consumer cannot successfully process the message, then it
should be re-delivered automatically according to the re-delivery policy.


My question is this:  How is the _unsuccessful_ processing of a message
communicated to the ActiveMQ broker?   The only way I've been able to do
this is to explicitly throw some kind of RuntimeException, but this seems
hacky.

I have almost been able to get this working using the transactional queue
approach, to explicitly commit or rollback an individual message, but this
then causes the message redelivery mechanism to re-send messages using
incorrect schedule.

Any help is greatly appreciated.

Thanks!
Cam

Reply via email to