I have a subscription msg flow with one compute node. The content of the compute is as follows:
DECLARE C INTEGER;
SET C = CARDINALITY(InputRoot.*[]);
DECLARE I INTEGER;
SET I = 1;
WHILE I < C DO
SET OutputRoot.*[I] = InputRoot.*[I];
SET I=I+1;
END WHILE;
-- Enter SQL below this line. SQL above this line might be regenerated, causing any modifications to be lost.
set OutputRoot.MQMD.Format='MQRFH2 ';
set OutputRoot.MQRFH2.psc.Command='RegSub';
set OutputRoot.MQRFH2.psc.Topic='XYZ';
set OutputRoot.MQRFH2.psc.QMgrName='';
set OutputRoot.MQRFH2.psc.QName='SUBXML_SUBOUT';
The subscription queue for topic XYZ is SUBXML_SUBOUT.
Can I have published data ( topic XYZ) go to more that one subscription queue in the SAME message flow ?
I can create different subscription msg flow for topic XYZ with different subscription queue. It works but I would like to avoid using multiple subscription msg flow for the same topic to different subscription queue.
Joined: 26 Jun 2001 Posts: 103 Location: IBM IT Education Services, Germany
I am not sure if it works if you just add more queues into the same RegSub message like
set OutputRoot.MQRFH2.psc.QName='SUBXML_SUBOUT1';
But you can easily create multiple RegSub messages within one message flow. In the Compute node, just add a PROPAGATE statement, and build a fresh output message. Dont' t forget to copy the statements to build/copy headers!
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