activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Timothy Bish <>
Subject Re: How to use INDIVIDUAL_ACKNOWLEDGE mode?
Date Tue, 08 Dec 2015 21:59:25 GMT
On 12/08/2015 04:44 PM, Camilo Rostoker wrote:
> 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.

Throwing is one option, otherwise closing the consumer will cause all
unack'd messages to be redelivered to another consumer. 

> 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

Tim Bish
Sr Software Engineer | RedHat Inc. | 
twitter: @tabish121

View raw message