File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes EJB and other Java EE Technologies and the fly likes Time JMS message lives on the topic Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Time JMS message lives on the topic" Watch "Time JMS message lives on the topic" New topic
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
    
    1

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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Time JMS message lives on the topic