On 07/05/2013 09:52 AM, cineva wrote:
The test was a short version of what I'm trying to do. The following code
depends on the time it takes from the rollback to the second receive. If I
wait a while after the rollback the output is "received received" else it's
"received not received". Is this how ActiveMQ-CPP and ActiveMQ are supposed
to behave?
if ( consumer->receive(500) )
cout << "received ";
else
cout << "not received ";
session->rollback();
// Sleep a while
if ( consumer->receive(500) )
cout << "received ";
else
cout << "not received ";
--
View this message in context:
http://activemq.2283324.n4.nabble.com/ActiveMQ-CPP-Rollback-function-returns-but-the-server-isn-t-done-rollbacking-tp4668896p4668923.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.
The redelivery policy defines the delays for initial redelivery delay
and continued delays for additional rollbacks along with max
redeliveries so you need to tune the policy to define what behavior you
want.
--
Tim Bish
Sr Software Engineer | RedHat Inc.
tim.b...@redhat.com | www.fusesource.com | www.redhat.com
skype: tabish121 | twitter: @tabish121
blog: http://timbish.blogspot.com/
www.camelone.org : The open source integration conference: