activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tobias Trelle <>
Subject Re: Oldest message in queue
Date Mon, 25 Oct 2010 10:02:02 GMT

Quique wrote:
> How can I use JMX/JMS in order to know what  is the oldest message in a
> queue and how much time is that message on the queue. Is that possible to
> implement ?

Since a queue by default implements the FIFO pattern (First in, first out),
the _current_ message read by the consumer will be the oldest one (as long
as you don't use any selectors).

IIRC, the JMS header property JMSTimestamp records the date of message
creation, see:


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

View raw message