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 » Find out message date

Post new topic  Reply to topic
 Find out message date « View previous topic :: View next topic » 
Author Message
jasmin
PostPosted: Tue Jan 10, 2006 3:33 am    Post subject: Find out message date Reply with quote

Novice

Joined: 04 Nov 2005
Posts: 15

Hello.

Is there a possibility to find out, once you get a message from the queue, when this message was created?

Thanks,
Jasmin.
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Tue Jan 10, 2006 4:41 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

You can ask the message for it's Put Date and Put Time.

That's not necessarily going to be the same thing. But it would be odd if a program created a message and then waited a significant period of time before sending it.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
jasmin
PostPosted: Tue Jan 10, 2006 5:13 am    Post subject: Reply with quote

Novice

Joined: 04 Nov 2005
Posts: 15

So where do I find the method for this request of put date and time?
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Tue Jan 10, 2006 5:14 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

In the documentation.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
jasmin
PostPosted: Tue Jan 10, 2006 5:18 am    Post subject: Reply with quote

Novice

Joined: 04 Nov 2005
Posts: 15

But do you know in which class of the com.ibm.mq package?
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Tue Jan 10, 2006 5:19 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

Which one represents the message?
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
jasmin
PostPosted: Tue Jan 10, 2006 5:28 am    Post subject: Reply with quote

Novice

Joined: 04 Nov 2005
Posts: 15

???
My java application performes a get on the queue. Now I want to check the date of the message, which is an object of the class MQMessage of the com.ibm.mq package.
You said it's possible to request the put date of the message, so there must be something like myMessage.getPutDate() or not? I browsed the classes for something like this but I couldn't find anything helpful.
Back to top
View user's profile Send private message
wschutz
PostPosted: Tue Jan 10, 2006 6:45 am    Post subject: Reply with quote

Jedi Knight

Joined: 02 Jun 2005
Posts: 3316
Location: IBM (retired)

Have a look at the MQMD class....
_________________
-wayne
Back to top
View user's profile Send private message Send e-mail AIM Address
bower5932
PostPosted: Tue Jan 10, 2006 11:01 am    Post subject: Reply with quote

Jedi Knight

Joined: 27 Aug 2001
Posts: 3023
Location: Dallas, TX, USA

Or you could look at amqsbcg.java at:

http://www.developer.ibm.com/isv/tech/sampmq.html

and see what it did.
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
PeterPotkay
PostPosted: Tue Jan 10, 2006 11:54 am    Post subject: Reply with quote

Poobah

Joined: 15 May 2001
Posts: 7722

of course, since you can set the put date and time to anything you want, that is not proof of when the message was created. Probably, but not definitly, it will be correct though.
_________________
Peter Potkay
Keep Calm and MQ On
Back to top
View user's profile Send private message
jasmin
PostPosted: Wed Jan 11, 2006 1:36 am    Post subject: Reply with quote

Novice

Joined: 04 Nov 2005
Posts: 15

I've tried the putDateTime field of MQMD. That's exactely what I need to know.
Thank you for your help.
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 » Find out message date
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.