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 Index » WebSphere Message Broker (ACE) Support » Generate the custom MessageId in MQMD

Post new topic  Reply to topic
 Generate the custom MessageId in MQMD « View previous topic :: View next topic » 
Author Message
ydeonia
PostPosted: Mon Aug 26, 2013 8:19 pm    Post subject: Generate the custom MessageId in MQMD Reply with quote

Acolyte

Joined: 29 Oct 2012
Posts: 74

Hi

I am facing a problem . I am using Propagate funcion to generate the two messages different in one field with each other in output from single input message .
The two messages generated has same messageIds which is creating problem in other system . They are only able to pick one message of same ID. I need to change the MessageId so that the broker generate the different Ids for two messages after propagation.

I searched on IBM catalogue and not able to find out this.
How can I achieve this?
Please guide .

Thanks
Back to top
View user's profile Send private message
ydeonia
PostPosted: Mon Aug 26, 2013 8:46 pm    Post subject: Reply with quote

Acolyte

Joined: 29 Oct 2012
Posts: 74

Thanks all.

I explored and found that we can reset the messageId like below

I have done 'MQMI_NONE' as below and it worked


Code:
SET OutputRoot.MQMD = InputRoot.MQMD;
SET OutputRoot.MQMD.MsgId= MQMI_NONE;


Anyone has to comment on this ?
Back to top
View user's profile Send private message
Simbu
PostPosted: Mon Aug 26, 2013 9:33 pm    Post subject: Reply with quote

Master

Joined: 17 Jun 2011
Posts: 289
Location: Tamil Nadu, India

you can also use MQHeader node to do this.
Back to top
View user's profile Send private message
ydeonia
PostPosted: Mon Aug 26, 2013 9:41 pm    Post subject: Reply with quote

Acolyte

Joined: 29 Oct 2012
Posts: 74

Simbu wrote:
you can also use MQHeader node to do this.


But i suspec that we cant use it when the message being generated using PROPOGATE function. The Header node can work for the single input and output message I guess.

Correct me if I am wrong.
Back to top
View user's profile Send private message
Simbu
PostPosted: Tue Aug 27, 2013 12:13 am    Post subject: Reply with quote

Master

Joined: 17 Jun 2011
Posts: 289
Location: Tamil Nadu, India

ydeonia wrote:
Simbu wrote:
you can also use MQHeader node to do this.


But i suspec that we cant use it when the message being generated using PROPOGATE function.:



there is no limitation like "we cant use it when the message being generated using PROPOGATE function". Its all about how you code your flow

ydeonia wrote:
The Header node can work for the single input and output message I guess.


yes. if you propagate multiple messages to OutQ through MQHeader Node which has MQMD.MsgId= MQMI_NONE then you can achieve the same.
Back to top
View user's profile Send private message
Vitor
PostPosted: Tue Aug 27, 2013 4:45 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

ydeonia wrote:
But i suspec that we cant use it when the message being generated using PROPOGATE function. The Header node can work for the single input and output message I guess.


Why suspect or guess? A few minutes of experimentation will tell you one way or the other.

ydeonia wrote:
Correct me if I am wrong.


Think about what the MQHeader node is doing. Then explain to me how what it does will differ if the message tree arriving at its In terminal is doing so because of a RETURN TRUE in an ESQL Compute node, a PROPAGATE in an ESQL Compute node or because it's being sent from any of the other nodes in the Toolkit.

Or what led you to "guess" or "suspect" it made a difference.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Generate the custom MessageId in MQMD
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.