activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cineva <andreigheorghe...@yahoo.com>
Subject Re: ActiveMQ-CPP - Rollback function returns but the server isn't done rollbacking
Date Fri, 05 Jul 2013 13:52:22 GMT
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.

Mime
View raw message