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 » Extract JMS_IBM_PUTTIME from JMS header

Post new topic  Reply to topic
 Extract JMS_IBM_PUTTIME from JMS header « View previous topic :: View next topic » 
Author Message
WBI_user
PostPosted: Wed Oct 04, 2006 10:09 am    Post subject: Extract JMS_IBM_PUTTIME from JMS header Reply with quote

Partisan

Joined: 07 Aug 2001
Posts: 386

Is there a easy way to get the JMS_IBM_PUTTIME from a JMS message ?
There is a getJMSTimestamp method. But there is none for JMS-IBM_Puttime. Any suggestion ? I need to get both the JMS_IBM_puttime and JMS_IBM_Putdate. I am using a JMS program.
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Wed Oct 04, 2006 11:20 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

Are you sure that getJMSTimestamp doesn't return the eqivalent of both the Puttime and the Putdate, but in a Java date object?
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
WBI_user
PostPosted: Wed Oct 04, 2006 12:23 pm    Post subject: Reply with quote

Partisan

Joined: 07 Aug 2001
Posts: 386

Jmstimestamp is in the mili format (not sure what's the right word for it). When I ran the sample JMS program supplied by IBM which maps out the header, it shows the JMS_IBM_PutTime and JMS_IBM_PutDate in the normal yyymmdd and GMT time. If there is a direct method to extract that , then I donlt have to do the conversion from the JMStimestamp.
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Wed Oct 04, 2006 12:53 pm    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

Did you try
Code:
myJMSMessage.getStringProperty("JMS_IBM_PutTime")
?
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
WBI_user
PostPosted: Wed Oct 04, 2006 8:03 pm    Post subject: Reply with quote

Partisan

Joined: 07 Aug 2001
Posts: 386

Thanks a lot,
myJMSMessage.getStringProperty("JMS_IBM_PutTime") works.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » Extract JMS_IBM_PUTTIME from JMS header
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.