Author |
Message
|
claire |
Posted: Mon Jun 07, 2004 3:01 am Post subject: How to know which application is cosuming messages? |
|
|
Apprentice
Joined: 10 Apr 2002 Posts: 32
|
Hello,
Our client program uses correlation id to get response messages from a reply queue. But sometimes, although the server program writes its response message to the reply queue, the client program cannot find the response message. Moreover, MQ explorer cannot find the response message either. I suspects that there is some other application consuming messages from the reply queue, is there any way to find out which application is consuming my messages?
Thanks a lot. |
|
Back to top |
|
 |
jefflowrey |
Posted: Mon Jun 07, 2004 4:07 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
Look at the Open Input Count of the queue in question. If you have two applications (or two copies of one application) reading from the queue, the Open Input Count will be 2.
If your Open Input Count is 1, then you only have one application reading from the queue. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
JLRowe |
Posted: Mon Jun 07, 2004 6:55 am Post subject: |
|
|
 Yatiri
Joined: 25 May 2002 Posts: 664 Location: South East London
|
You can look at the queue status to see exactly which processes have the queue open, and what for (put, get, browse etc). |
|
Back to top |
|
 |
PeterPotkay |
Posted: Mon Jun 07, 2004 1:08 pm Post subject: |
|
|
 Poobah
Joined: 15 May 2001 Posts: 7722
|
And you can use Queue Statistics to see how many messages have gone in and out of a queue since the last time you checked Queue Statistics.
You are assumming the server program actually put the response. Until you can prove that it really did do the put, don't be to quick to blame some other entity for getting it. _________________ Peter Potkay
Keep Calm and MQ On |
|
Back to top |
|
 |
frankdk |
Posted: Thu Jun 10, 2004 12:28 pm Post subject: |
|
|
 Novice
Joined: 10 Jun 2004 Posts: 20 Location: Copenhagen, Denmark
|
Hi
Be aware that the Q stats do not record every update to the queue. If messages are backed out in the application they may appear as being put in the stats. Also if messages expire they may not show up as gotten form the Q in the stats.
Could your msgs have expired?
Regards
Frank |
|
Back to top |
|
 |
Heinz57 |
Posted: Fri Jun 11, 2004 7:31 am Post subject: |
|
|
 Apprentice
Joined: 21 Jan 2004 Posts: 26 Location: Syracuse, NY
|
Also, you may want to check your dead letter q(s) to make sure your messages aren't there |
|
Back to top |
|
 |
maxis |
Posted: Mon Jun 14, 2004 12:09 am Post subject: |
|
|
Centurion
Joined: 25 Jun 2002 Posts: 144
|
how about the transmission queue .. anything there ? |
|
Back to top |
|
 |
|