activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chetansistla <>
Subject Iterate over non-persistent activemq expired messages in ActiveMQ.Advisory.Expired.Queue
Date Thu, 22 Sep 2016 04:55:26 GMT

Iam building an application on activemq where iam sending a message from
producer where my delivery mode is NON_PERSISTENT (*iam not dealing with
PERSISTENT delivery mode and i know it will be stored in DLQ-which is not my
design*)and have set a time to live for the message using
producer.setTimeToLive(2000).As the functionality says the message will
expire in 2 seconds.

I see that the expired messages are enqueued in the
*ActiveMQ.Advisory.Expired.Queue* in the topic section of activeMQ admin
console i.e. *http://localhost:8161/admin/topics.jsp.
My question is how do i *iterate* over the *ActiveMQ.Advisory.Expired.Queue*
so that i can access the *MessageID* of the expired message.Any code example
would be great.

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

View raw message