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 » Publish message on multiple topic strings

Post new topic  Reply to topic
 Publish message on multiple topic strings « View previous topic :: View next topic » 
Author Message
sancsan
PostPosted: Sun Jun 26, 2016 1:14 pm    Post subject: Publish message on multiple topic strings Reply with quote

Newbie

Joined: 24 Feb 2016
Posts: 4

Hi,

I've a scenario where I would receive message using MQ Input node and based on the value of source system present in the message, I need to form topic string and publish the message. This is how my flow looks like:

MQInput -> Compute -> Publication

And I populate the value of Topic using:
SET OutputRoot.Properties.Topic = 'TopicName/' || sourceName ;

This works fine in case message contains one source system.

However there is possibility that message contain multiple source system. How do I publish message on multiple topic string using this flow (something like this)

SET OutputRoot.Properties.Topic = 'Topic/' || sourceName1 ;
SET OutputRoot.Properties.Topic = 'Topic/' || sourceName2 ;

Appreciate any suggestions.
Back to top
View user's profile Send private message
menonshankar
PostPosted: Mon Jun 27, 2016 7:16 am    Post subject: Reply with quote

Newbie

Joined: 30 Jun 2015
Posts: 5

Add a propagate statement inside a loop that iterates as many times as the number of sources. Set appropriate value for OutputRoot.Properties.Topic for each iteration. Make sure to change the return value of Main function to false;
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Publish message on multiple topic strings
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.