activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From damianbl <damian.blazejew...@gmail.com>
Subject Re: ActiveMQ c++ - redelivery delay
Date Wed, 20 Mar 2013 14:31:46 GMT
Problem solved.
Error was not in defining redelivery policy
but in dealing with messages ack/not ack.

When message was to be acknowledged it was done this way:

    _message->acknowledge();

However, when message was to be returned to the queue the following snippet
was called:

    _session->recover();

That was the problem. According to ActiveMQ-CPP documentation, messages that
have been received but not acknowledged will be redelivered.
According to that there is no need to do anything on _session object. 
Not sending acknowledgement is enough.



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

Mime
View raw message