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 IndexIBM MQ API Supportmessage id on publishj with MQPUT()

Post new topicReply to topic
message id on publishj with MQPUT() View previous topic :: View next topic
Author Message
whiting
PostPosted: Sat Dec 15, 2018 6:46 am Post subject: message id on publishj with MQPUT() Reply with quote

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
View user's profile Send private message Send e-mail
fjb_saper
PostPosted: Sat Dec 15, 2018 7:26 am Post subject: Re: message id on publishj with MQPUT() Reply with quote

Grand Poobah

Joined: 18 Nov 2003
Posts: 19943
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
View user's profile Send private message Send e-mail
Display posts from previous:
Post new topicReply to topic Page 1 of 1

MQSeries.net Forum IndexIBM MQ API Supportmessage id on publishj with MQPUT()
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.