Author |
Message
|
Priya Raghunath |
Posted: Wed Feb 16, 2005 10:00 pm Post subject: Queue Name in PutAfter Event |
|
|
Newbie
Joined: 24 Jan 2005 Posts: 5
|
Hello,
I am trying to program an API Exit program for IBM MQ Series 5.3 CSD5 version. I am trying trigger an PutAfter event on a specific Queue for a specific Queue Manager.
The problem is, when the event gets triggered I am unable to identify for which queue the event has been triggered when I put a message.
Irrespective the message dropped in q1, q2 q3, .... qn the event will trigger and the code in the PutAfter function will get executed but I need to restrict it to a single Queue.
Kindly post your comments.
Thanks,
Priya |
|
Back to top |
|
 |
Jeeva |
Posted: Thu Feb 17, 2005 7:17 am Post subject: Queue Name in PutAfter Event |
|
|
Novice
Joined: 16 Feb 2005 Posts: 12 Location: India
|
API exit is set in Queue manager level and we cannot restrict that to Specific Queue level.
But there are work arounds to achieve that, by using Namelist. Create a namelist with the Queues for which you need to trigger the PutAfter Event. then access the namelist in your API Exit code.
Jeeva |
|
Back to top |
|
 |
jefflowrey |
Posted: Thu Feb 17, 2005 7:19 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
I don't think that answers the question.
The question appears to be "When my code enters PutAfter, how do I determine which queue has caused the exit to fire?" - which queue has just had a message put to it? _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
bower5932 |
Posted: Thu Feb 17, 2005 7:58 am Post subject: |
|
|
 Jedi Knight
Joined: 27 Aug 2001 Posts: 3023 Location: Dallas, TX, USA
|
|
Back to top |
|
 |
Priya Raghunath |
Posted: Thu Feb 17, 2005 10:03 pm Post subject: mirrorq doesn't help |
|
|
Newbie
Joined: 24 Jan 2005 Posts: 5
|
Hi,
Thanks for your kind quick response.
Actually mirroq is a typical program that makes a manual repository of the custom queue names. But is there any MQ Series parameter that informs me that "Yes, This queue has triggered the event",
for example when you look at the OpenAfter function signature it has function parameter called pMQOD i.e the structure member pMQOD->ObjectName will give me for which queue the OpenAfter is being triggered, do we have any similar thing for PutAfter, GetAfter.
Thanks,
Priya |
|
Back to top |
|
 |
bob_buxton |
Posted: Fri Feb 18, 2005 1:39 am Post subject: |
|
|
 Master
Joined: 23 Aug 2001 Posts: 266 Location: England
|
As well as the object name you will also have the connection and object handles in the Open After call. If you have the same pair of handles in subsequent Put and Get the request is for the same queue.
There is no MQ function other than MQINQ that will tell you what the object name associated with a handle is. _________________ Bob Buxton
Ex-Websphere MQ Development |
|
Back to top |
|
 |
|