Author |
Message
|
TomUrick |
Posted: Thu Sep 13, 2012 2:45 am Post subject: how to get queue name in PUT API Exit (MQ_PUT_EXIT) |
|
|
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 |
|
 |
hughson |
Posted: Fri May 10, 2013 4:57 am Post subject: Re: how to get queue name in PUT API Exit (MQ_PUT_EXIT) |
|
|
 Padawan
Joined: 09 May 2013 Posts: 1959 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 |
|
 |
mqjeff |
Posted: Fri May 10, 2013 5:09 am Post subject: |
|
|
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 |
|
 |
Vitor |
Posted: Fri May 10, 2013 5:11 am Post subject: |
|
|
 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 |
|
 |
mqjeff |
Posted: Fri May 10, 2013 5:35 am Post subject: |
|
|
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 |
|
 |
Vitor |
Posted: Fri May 10, 2013 6:36 am Post subject: |
|
|
 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 |
|
 |
mqjeff |
Posted: Fri May 10, 2013 7:11 am Post subject: |
|
|
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 |
|
 |
|