Author |
Message
|
xz3637 |
Posted: Mon Jun 14, 2004 11:33 am Post subject: Time Stamp |
|
|
Newbie
Joined: 14 Jun 2004 Posts: 2
|
Hi all.
Is there a way to check the time stamp for the last message arrived in a queue which has 100,000 messages?
Thanks!
Jerry |
|
Back to top |
|
 |
jefflowrey |
Posted: Mon Jun 14, 2004 12:25 pm Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
Yes.
Browse all 100,000 messages and look at the timestamp of the last one.
OR
Consume all 100,000 messages and look at the timestamp of the last one.
OR
Browse for the message ID or correlation ID of the last message, and look at it's timestamp.
OR
Consume/Get the last message by messageID or correlationID and look at the timestamp.
Or something else, depending on your OS and what tools you have available. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
maxis |
Posted: Tue Jun 15, 2004 1:17 am Post subject: |
|
|
Centurion
Joined: 25 Jun 2002 Posts: 144
|
jeff .. when you say
Quote: |
Browse all 100,000 messages and look at the timestamp of the last one. |
.. you meant write a program to do that task right .. ?
xz3637
write a program to do that similar job .. it'll be very handy .. some of the feature you might want to add would be
1. search based on msg-id/correl-id
2. browse "n" number of message
I had written such program for a previous client. During administration that proved very useful ... best of luck |
|
Back to top |
|
 |
kevinf2349 |
Posted: Tue Jun 15, 2004 5:26 am Post subject: |
|
|
 Grand Master
Joined: 28 Feb 2003 Posts: 1311 Location: USA
|
On NT you could use MQ Explore...double click the queue name and drag the slide bar down to the last message. You may get lucky and the timestamps may be in order.
Of course this isn't doing it programatically but if you only want to see when the last message was placed on the queue it may give you what you need. |
|
Back to top |
|
 |
vennela |
Posted: Tue Jun 15, 2004 8:11 am Post subject: |
|
|
 Jedi Knight
Joined: 11 Aug 2002 Posts: 4055 Location: Hyderabad, India
|
Quote: |
On NT you could use MQ Explore...double click the queue name and drag the slide bar down to the last message. You may get lucky and the timestamps may be in order. |
I thought MQExplorer only showed a max of 200 messages |
|
Back to top |
|
 |
xz3637 |
Posted: Tue Jun 15, 2004 9:31 am Post subject: |
|
|
Newbie
Joined: 14 Jun 2004 Posts: 2
|
What if the messages that I put on a queue left? How can I know at what time the last message was sent? |
|
Back to top |
|
 |
kevinf2349 |
Posted: Tue Jun 15, 2004 9:37 am Post subject: |
|
|
 Grand Master
Joined: 28 Feb 2003 Posts: 1311 Location: USA
|
Vennela
You could well be right. We don't have queues with anywhere near that number of messages on them. What about using MO71 I 'think' (usually a doubtful statement) that you can specify a range on there can't you?
The problem will still remain that this would be a manual process so I am not sure that is what the original poster wants.
btw.. Congrats on the wedding.  |
|
Back to top |
|
 |
kevinf2349 |
Posted: Tue Jun 15, 2004 9:41 am Post subject: |
|
|
 Grand Master
Joined: 28 Feb 2003 Posts: 1311 Location: USA
|
xz3637
What do you mean by 'left' and 'sent'? Is this a transmission queue? If it is you will need to check the date and time on the target queue in they have already 'left' the transmission queue. |
|
Back to top |
|
 |
|