Posted: Fri Oct 01, 2004 9:37 pm Post subject: regarding getMessageDeliveryTime - URGENT
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.
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.
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