| Author |
Time JMS message lives on the topic
|
Yevgeniy Furman
Greenhorn
Joined: Dec 27, 2012
Posts: 1
|
|
I would to find out how long the message has been on a topic before a client read it.
Specifically:
I have 3 machines with the different times (producer, JMS Server and Consumer).
Producer sent a message to JMS at 11:00 (producer time)
the client read the message from JMS at 11:01.
What I would like to do is to get this information in terms of JMS Server time so that I can say for sure that my messages sat on the queue/topic for exactly X milliseconds.
Please help
|
 |
Lucas Smith
Ranch Hand
Joined: Apr 20, 2009
Posts: 804
|
|
Look at:
http://docs.oracle.com/javaee/6/api/javax/jms/Message.html#getJMSTimestamp%28%29
And try that:
|
SCJP6, SCWCD5, OCE:EJBD6.
BLOG: http://leakfromjavaheap.blogspot.com
|
 |
 |
|
|
subject: Time JMS message lives on the topic
|
|
|