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 » User Exits » how to get queue name in PUT API Exit (MQ_PUT_EXIT)

Post new topic  Reply to topic
 how to get queue name in PUT API Exit (MQ_PUT_EXIT) « View previous topic :: View next topic » 
Author Message
TomUrick
PostPosted: Thu Sep 13, 2012 2:45 am    Post subject: how to get queue name in PUT API Exit (MQ_PUT_EXIT) Reply with quote

Newbie

Joined: 20 Apr 2010
Posts: 1

In Put MQ API Exit (before or after) is there anyway to get the name of the target queue (i.e. the queue against which "put" call has been invoked).


I tried inquiring on "Hobj" parameter, but got error saying object has not been opened with Inquiry option (which is a valid possibility).

I also checked ResolvedQName field of "pPutMsgOpts" parameter, but that was blank.

Is there any other means of getting the target queue name. Any idea would be much appreciated.
Back to top
View user's profile Send private message
hughson
PostPosted: Fri May 10, 2013 4:57 am    Post subject: Re: how to get queue name in PUT API Exit (MQ_PUT_EXIT) Reply with quote

Padawan

Joined: 09 May 2013
Posts: 1914
Location: Bay of Plenty, New Zealand

TomUrick wrote:
In Put MQ API Exit (before or after) is there anyway to get the name of the target queue (i.e. the queue against which "put" call has been invoked).
No, I think the only way is to cross the Open MQ API After Exit, and remember the name that goes with the hObj.

TomUrick wrote:
I also checked ResolvedQName field of "pPutMsgOpts" parameter, but that was blank.
This would only be available on a Put MQ API After Exit, not on Before and is not necessarily the name of the queue that was opened as it is there to indicate the final targeted queue after queue name resolution.

Cheers
Morag
_________________
Morag Hughson @MoragHughson
IBM MQ Technical Education Specialist
Get your IBM MQ training here!
MQGem Software
Back to top
View user's profile Send private message Visit poster's website
mqjeff
PostPosted: Fri May 10, 2013 5:09 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

Are you trying to implement a security model?

What use are you going to put the queue name towards? What purpose in writing an exit?
Back to top
View user's profile Send private message
Vitor
PostPosted: Fri May 10, 2013 5:11 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

IHMO in 9 months the OP's either fixed it or given up...
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
mqjeff
PostPosted: Fri May 10, 2013 5:35 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

Vitor wrote:
IHMO in 9 months the OP's either fixed it or given up...

I'm happy to blame Morag.

But I'm an American, so I can be rude like that.
Back to top
View user's profile Send private message
Vitor
PostPosted: Fri May 10, 2013 6:36 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

mqjeff wrote:
Vitor wrote:
IHMO in 9 months the OP's either fixed it or given up...

I'm happy to blame Morag.


No woman is every wrong.

mqjeff wrote:
But I'm an American, so I can be rude like that.


So can a Brit. Does that mean I can be twice as rude now?
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
mqjeff
PostPosted: Fri May 10, 2013 7:11 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

Vitor wrote:
mqjeff wrote:
But I'm an American, so I can be rude like that.


So can a Brit. Does that mean I can be twice as rude now?


You'll have to ask your wife on that one.
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 » User Exits » how to get queue name in PUT API Exit (MQ_PUT_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.