This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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
 
 
subject: Time JMS message lives on the topic
 
Similar Threads
JMS Issue
Jboss complains that our client is not disconnecting cleanly
client-server based Query
Developing JMS Store-And-Forward from scratch
JMS request/ Response Model using MDB.