|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
How to retrieve Q Name in API Put After Exit??? |
« View previous topic :: View next topic » |
Author |
Message
|
MarkWalton |
Posted: Tue Mar 30, 2004 12:35 pm Post subject: How to retrieve Q Name in API Put After Exit??? |
|
|
Newbie
Joined: 30 Mar 2004 Posts: 4
|
Hello,
I am coding an API exit for Put After (MQXF_PUT/MQXR_AFTER). I know the function is passed the pHobj which is a pointer to the opened queue. What I want to do is retrieve the name of the queue, but the process that opened the queue does not open it with Inquiry options, so you cannot do a MQINQ. So...how do you know which queue this is???
Thanks in advance. |
|
Back to top |
|
 |
clindsey |
Posted: Tue Mar 30, 2004 1:25 pm Post subject: |
|
|
Knight
Joined: 12 Jul 2002 Posts: 586 Location: Dallas, Tx
|
Mark,
The way I handle this is to maintain a linked list of open queues. Each time a queue is open, I add an entry to the list which maps an hObj to the name. On close, I remove from the list. Then you can traverse the list in PutAfter and find the queue name. You can anchor the list in the exitUserArea.
Hope this helps,
Charlie |
|
Back to top |
|
 |
MarkWalton |
Posted: Tue Mar 30, 2004 1:29 pm Post subject: |
|
|
Newbie
Joined: 30 Mar 2004 Posts: 4
|
Charlie,
I hadn't thought of that. Thank you.
Mark |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|