Posted: Fri May 20, 2011 2:32 am Post subject: How to retain the MQMD.ApplIDData in the subscribed message
Partisan
Joined: 06 Oct 2008 Posts: 329 Location: India
Hi ,
I have a publisher flow which publishes a message on perticular topic. And I have craeted a subscription in WMQ to receive message in a queue. And is working perfectly.
Now I need to set the MQMD.ApplIDData in the publisher flow based on the message content and that should be available at the message subscriber queue. When I check the message at the subscriber queue the MQMD.ApplIDData is empty.
Could you please let me know how can we achieve this.
Thank you. _________________ -----------------------------------------------
It is good to remember the past,
but don't let past capture your future
ApplIdentityData (MQCHAR32)
For the MQPUT and MQPUT1 calls, this is an input/output field if MQPMO_SET_IDENTITY_CONTEXT or MQPMO_SET_ALL_CONTEXT is specified in the PutMsgOpts parameter. If a null character is present, the null and any following characters are converted to blanks by the queue manager. If neither MQPMO_SET_IDENTITY_CONTEXT nor MQPMO_SET_ALL_CONTEXT is specified, this field is ignored on input and is an output-only field. For more information on message context, see the WebSphere MQ Application Programming Guide.
I guess the user id that subscribes must have "Pass identity context" or "Pass all context" authority on the subcription queue.
I have had the same problem but I never had the time to test if this is all you need.
Of course the publishing user id must have "Set identity context" or "Set all context" on the topic, but if that were not the case the PUT operation would fail with a reason code "not authorized".
What options have you configured on your MQOutput Node?
To quote a post on this forum (found by a search...)
I am not using MQOutput node. I am doing the publication of messages in my flow and hence using the Publication node. Is there any properties I need to set while creating the subscriptions to achive this? _________________ -----------------------------------------------
It is good to remember the past,
but don't let past capture your future
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