> That sounds like the remaining inflight messages are getting acknowledged > during the process of shutting down gracefully; even though your consumer > never received them. Is that accurate? If so, that still sounds like a > bug.
My durable consumer received them in client ack mode and didn't acknowledge them. So those messages are getting lost(Getting lost mean the consumer won't get them back when it come back online) if I gracefully shutdown the consumer. In my case gracefully shutdown means I will unsubscribe the durable consumer from the topic during shutdown. If I don't unsubscribe the subscription, the broker mark the consumer as inactive durable subscriber and the consumer will get the messages again when it subscribe again. That's an expected behavior I think. Thanks, Anuj -- View this message in context: http://activemq.2283324.n4.nabble.com/ActiveMQ-How-to-retain-inflight-messages-post-consumer-restart-tp4727027p4727134.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.