Author |
Message
|
jasmin |
Posted: Tue Jan 10, 2006 3:33 am Post subject: Find out message date |
|
|
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 |
|
 |
jefflowrey |
Posted: Tue Jan 10, 2006 4:41 am Post subject: |
|
|
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 |
|
 |
jasmin |
Posted: Tue Jan 10, 2006 5:13 am Post subject: |
|
|
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 |
|
 |
jefflowrey |
Posted: Tue Jan 10, 2006 5:14 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
In the documentation. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
jasmin |
Posted: Tue Jan 10, 2006 5:18 am Post subject: |
|
|
Novice
Joined: 04 Nov 2005 Posts: 15
|
But do you know in which class of the com.ibm.mq package? |
|
Back to top |
|
 |
jefflowrey |
Posted: Tue Jan 10, 2006 5:19 am Post subject: |
|
|
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 |
|
 |
jasmin |
Posted: Tue Jan 10, 2006 5:28 am Post subject: |
|
|
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 |
|
 |
wschutz |
Posted: Tue Jan 10, 2006 6:45 am Post subject: |
|
|
 Jedi Knight
Joined: 02 Jun 2005 Posts: 3316 Location: IBM (retired)
|
Have a look at the MQMD class....  _________________ -wayne |
|
Back to top |
|
 |
bower5932 |
Posted: Tue Jan 10, 2006 11:01 am Post subject: |
|
|
 Jedi Knight
Joined: 27 Aug 2001 Posts: 3023 Location: Dallas, TX, USA
|
|
Back to top |
|
 |
PeterPotkay |
Posted: Tue Jan 10, 2006 11:54 am Post subject: |
|
|
 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 |
|
 |
jasmin |
Posted: Wed Jan 11, 2006 1:36 am Post subject: |
|
|
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 |
|
 |
|