ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » IBM MQ Java / JMS » regarding getMessageDeliveryTime - URGENT

Post new topic  Reply to topic
 regarding getMessageDeliveryTime - URGENT « View previous topic :: View next topic » 
Author Message
murugaanandam
PostPosted: Fri Oct 01, 2004 9:37 pm    Post subject: regarding getMessageDeliveryTime - URGENT Reply with quote

Novice

Joined: 22 Apr 2004
Posts: 19

hi all

i have one doubt n JMS Message Sender.

my client want to know about Message Delivary Time.
my MDB pick up the message n queue.
that Message MQMD Properity contain like this property
JMS_IBM_PutTime:18372139
JMS_IBM_PutDate:20041001

after i create a response msg and put it n same queue.

but my client told , my reply message contain some junk time.

my problem is , i want to know abt the exact message delivary Time.
am using
long JmsTimeStamp = outMsg.getJMSTimestamp();
but this method return 0 time.

any body can help me to come out from this problem.
its very urgent.

thanx n advance
regards
muruganandam
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Sat Oct 02, 2004 8:51 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

Quote:
but my client told , my reply message contain some junk time
You do not set any date and time on the message. MQ will take care of it when you do the put.(i.e. JMS msg.send()). Now about all that junk time issue: when reading the message you need to create a SimpleDateFormat and set it's time zone to "UTC".
MQ sets all date and time information in UTC (makes sense when you consider transmissions to qmgr in a different time zone...) In order to display it in local date and time format just create another SimpleDateFormat and use it with the date object created by the one in UTC. It will display the information in the default (your) time zone and adjust it accordingly.

Enjoy
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » regarding getMessageDeliveryTime - URGENT
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.