|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
WMQv7.5 message properties in an exit |
« View previous topic :: View next topic » |
Author |
Message
|
Vitor |
Posted: Wed Feb 26, 2014 12:11 pm Post subject: WMQv7.5 message properties in an exit |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
So let's accept as a starting point that user exits are the court of last resort and any sane person avoids their use at all costs.
If I wanted to have an API exit invoked before the MQPut or MQPut1 calls and that exit wanted to examine the message properties associated with a message (for those people who don't read subject lines this is WMQv7.5), could it do this? Are these expressed to the exit as part of the buffer or in some other area? I've looked at the parameters associated with those exits are was distressed not to see pProperties as well as pBuffer. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
mqjeff |
Posted: Wed Feb 26, 2014 1:29 pm Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
|
Back to top |
|
 |
markt |
Posted: Thu Feb 27, 2014 1:05 am Post subject: |
|
|
 Knight
Joined: 14 May 2002 Posts: 508
|
For PUT, the exit is passed the MQPMO which in turn contains MsgHandles.
There's also the MQBUFMH and MQMHBUF calls that convert between a handle and flattened form. |
|
Back to top |
|
 |
RogerLacroix |
Posted: Thu Feb 27, 2014 4:56 pm Post subject: |
|
|
 Jedi Knight
Joined: 15 May 2001 Posts: 3264 Location: London, ON Canada
|
Hi,
Yes, it is pretty straightforward. I did this in MQ Auditor. You grab the handle from the PMO (version 3 or higher) then loop through the message properties and do what you need with them. Remember to check the 'Type' of property value before you use it (i.e. MQTYPE_STRING, MQTYPE_INT32, etc.).
Hope that helps.
Regards,
Roger Lacroix
Capitalware Inc. _________________ Capitalware: Transforming tomorrow into today.
Connected to MQ!
Twitter |
|
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
|
|
|
|