File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Time JMS message lives on the topic

 
Yevgeniy Furman
Greenhorn
Posts: 1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 808
1
Android Eclipse IDE Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Look at:
http://docs.oracle.com/javaee/6/api/javax/jms/Message.html#getJMSTimestamp%28%29

And try that:

 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic