|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
message id on publishj with MQPUT() |
« View previous topic :: View next topic » |
Author |
Message
|
whiting |
Posted: Sat Dec 15, 2018 6:46 am Post subject: message id on publishj with MQPUT() |
|
|
Acolyte
Joined: 26 Mar 2002 Posts: 64 Location: Greenville, SC
|
I'm trying to get the messsage Id created when publishing a message
I'm using the MQPUT() or MQPUT1() where the objectType is set to topic instead of the default queue
MQPUT() returns zeroes in the MsgId of the message descriptor
If I set PMO option MQPMO_NEW_MSG_ID then MQPUT() returns a non-zero value in the MsgId, but the value is different than what the queue manager puts in the published message.
If I publish with RFHUtil it fils in the correct MsgId in the MQMD tab, but I can't determine how to get that value.
If it's documented in the knowledge center, I can't find it.
I tried including a Put message record like you would for putting to a distribution list, but MQPUT returns a 2154 error
Any help or pointers would be much appreciated. |
|
Back to top |
|
 |
fjb_saper |
Posted: Sat Dec 15, 2018 7:26 am Post subject: Re: message id on publishj with MQPUT() |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
whiting wrote: |
I'm trying to get the messsage Id created when publishing a message
I'm using the MQPUT() or MQPUT1() where the objectType is set to topic instead of the default queue
MQPUT() returns zeroes in the MsgId of the message descriptor
If I set PMO option MQPMO_NEW_MSG_ID then MQPUT() returns a non-zero value in the MsgId, but the value is different than what the queue manager puts in the published message.
If I publish with RFHUtil it fils in the correct MsgId in the MQMD tab, but I can't determine how to get that value.
If it's documented in the knowledge center, I can't find it.
I tried including a Put message record like you would for putting to a distribution list, but MQPUT returns a 2154 error
Any help or pointers would be much appreciated. |
I don't think there is anything in the publication but there is something you can do in the subscription.
You can tell the subscription to keep the correlId.
So on the publication also ask to create a new correlId in the PMO_Options.
See http://www.mqseries.net/phpBB2/viewtopic.php?t=71086&start=15 and
IBM MQ Little Gem #31: Publisher's CorrelId
You may have to wait until after the weekend though because all of the ibm community pages seem to return a 404
Hope this helps  _________________ MQ & Broker admin |
|
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
|
|
|
|