ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » IBM MQ API Support » How to retrieve Q Name in API Put After Exit???

Post new topic  Reply to topic
 How to retrieve Q Name in API Put After Exit??? « View previous topic :: View next topic » 
Author Message
MarkWalton
PostPosted: Tue Mar 30, 2004 12:35 pm    Post subject: How to retrieve Q Name in API Put After Exit??? Reply with quote

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
View user's profile Send private message
clindsey
PostPosted: Tue Mar 30, 2004 1:25 pm    Post subject: Reply with quote

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
View user's profile Send private message
MarkWalton
PostPosted: Tue Mar 30, 2004 1:29 pm    Post subject: Reply with quote

Newbie

Joined: 30 Mar 2004
Posts: 4

Charlie,

I hadn't thought of that. Thank you.

Mark
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ API Support » How to retrieve Q Name in API Put After Exit???
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.