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 - Is there a way to keep track of how many times a message has been redelivered?
Date Mon, 22 Jul 2013 14:07:45 GMT
Assuming there is a message in the queue, I was expecting the following code
to output: 0123456789 but I get 0123412345.

	for ( i=1; i<=5; i++ )
	{
		msg = consumer->receive(TIMEOUT);
		cout << msg->getIntProperty("JMSXDeliveryCount");
		session->rollback();
	}

	consumer->close();
	delete consumer;

	for ( i=1; i<=5; i++ )
	{
		msg = consumer2->receive(TIMEOUT);
		cout << msg->getIntProperty("JMSXDeliveryCount");
		session->rollback();
	}




--
View this message in context: http://activemq.2283324.n4.nabble.com/ActiveMQ-CPP-Is-there-a-way-to-keep-track-of-how-many-times-a-message-has-been-redelivered-tp4669562p4669574.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Mime
View raw message