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 IndexWebSphere Message Broker SupportWEBSPHERE MQ WITH IIB User Exit - UNABLE TO MODIFY HEADERS

Post new topicReply to topic
WEBSPHERE MQ WITH IIB User Exit - UNABLE TO MODIFY HEADERS View previous topic :: View next topic
Author Message
iibdevYANDEX
PostPosted: Fri Aug 11, 2017 2:51 pm Post subject: WEBSPHERE MQ WITH IIB User Exit - UNABLE TO MODIFY HEADERS Reply with quote

Newbie

Joined: 11 Aug 2017
Posts: 2

I have an IIB workflow that has a MQINPUT node that connects to a MQ manager and retrieves the incoming messages from a queue. In IIB I have a user exit that gets called when the input arrives. I am trying to add a key value pair to the MQ header (MQRFH2/usr) but it seems like the incoming header information is read only and any changes that I make to the CciMessage buffer coming in, just gets discarded. Could someone please provide some pointers as to how I can modify the MQ header to include the new fields?

Thanks!
Back to top
View user's profile Send private message
mqjeff
PostPosted: Sat Aug 12, 2017 6:45 am Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17307

That sounds very complicated.

Why do you need this set before it comes into the MQInput node?

Why are you trying to usean exit to do this?

Have you tried changing the properties instead of the mqrfh2?

Have you confirmed that your exits works without using IIB?
_________________
Read, Think, Try, Repeat
Back to top
View user's profile Send private message
iibdevYANDEX
PostPosted: Mon Aug 14, 2017 7:10 am Post subject: Reply with quote

Newbie

Joined: 11 Aug 2017
Posts: 2

Thanks for the reply.

Below is an example of the sample flow.

Q1 --> IIB (MQInput) --- > UpdateHeaderInUserExit---> MQOutput --- >Q2


Q2 ---> IIB (MQInput1) ---> UserExit reads the updated header .....

>>Have you tried changing the properties instead of the mqrfh2?
Not yet, I will try that

>>Have you confirmed that your exits works without using IIB?
Yes
Back to top
View user's profile Send private message
Vitor
PostPosted: Mon Aug 14, 2017 7:25 am Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 24391
Location: Ohio, USA

I find it very hard to believe that there's anything you need to do that's not easier / better / faster more maintainable in IIB than in an MQ user exit, as my most worthy associate alludes to.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
rekarm01
PostPosted: Mon Aug 14, 2017 5:25 pm Post subject: Re: WEBSPHERE MQ WITH IIB User Exit - UNABLE TO MODIFY HEADE Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 1239

This topic belongs in the WMB/IIB forum.

Vitor wrote:
... MQ user exit ...

An IIB user exit is not the same thing as an MQ user exit.

iibdevYANDEX wrote:
I am trying to add a key value pair to the MQ header (MQRFH2/usr) but it seems like the incoming header information is read only and any changes that I make to the CciMessage buffer coming in, just gets discarded.

The user exit would need to modify the message tree, not the CciMessage buffer. The C user exit API contains more details about accessing and updating elements in the message tree.
Back to top
View user's profile Send private message
Display posts from previous:
Post new topicReply to topic Page 1 of 1

MQSeries.net Forum IndexWebSphere Message Broker SupportWEBSPHERE MQ WITH IIB User Exit - UNABLE TO MODIFY HEADERS
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.