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.

Reply via email to