You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by newtonsri <ne...@yahoo.com> on 2012/04/04 08:23:55 UTC

Acknowledgement and redelivery

Hi,

I am using Client_acknowledge mode of acknowledgement in my application. I
ll be sending the acknowledgement after processing the message.
I have a doubt, the ActiveMQ redelivers the message upon timeout of
redelivery delay; what if my message.acknowledge() and the redelivery takes
place simultaneously? Does activemq handle this?

Thanks.

--
View this message in context: http://activemq.2283324.n4.nabble.com/Acknowledgement-and-redelivery-tp4531068p4531068.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Re: Acknowledgement and redelivery

Posted by Gary Tully <ga...@gmail.com>.
redelivery processing begins once there is an exception or transaction
rollback, it is not based on a time since delivery. So in your case,
activemq consider the message inflight till you acknowledge or till
the consumer closes, so there will be no redelivery.

see: http://activemq.apache.org/message-redelivery-and-dlq-handling.html

On 4 April 2012 07:23, newtonsri <ne...@yahoo.com> wrote:
> Hi,
>
> I am using Client_acknowledge mode of acknowledgement in my application. I
> ll be sending the acknowledgement after processing the message.
> I have a doubt, the ActiveMQ redelivers the message upon timeout of
> redelivery delay; what if my message.acknowledge() and the redelivery takes
> place simultaneously? Does activemq handle this?
>
> Thanks.
>
> --
> View this message in context: http://activemq.2283324.n4.nabble.com/Acknowledgement-and-redelivery-tp4531068p4531068.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.



-- 
http://fusesource.com
http://blog.garytully.com