I have created a queue using JMX API and it sucessfully consume messages.
Then i have killed the consumer process and start a new consumer bound to the same queue
and it starts getting same messages which had been alreday delieverd to itself before gets killed.
Can anyone tell me how to remove all deliverd messages?
make sure you are using the correct ack mode and also acknowledging the messages if needed