activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cineva <>
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 ";
		cout << "not received ";
	// Sleep a while
	if ( consumer->receive(500) )
		cout << "received ";
		cout << "not received ";

View this message in context:
Sent from the ActiveMQ - User mailing list archive at

View raw message