Posted: Mon Jan 16, 2006 4:30 am Post subject: Flow for subscribing in message broker
Newbie
Joined: 12 Jan 2006 Posts: 2
I have a simple flow for publishing a topic :
MQInput -> Compute -> Publication.
The flow for subscribing is :
MQInput -> Compute -> MQOutput.
The compute node for subscribe flow has the following ESQL:
SET OutputRoot.MQMD.MsgType = 1;
SET OutputRoot.MQMD.ReplyToQ = 'SUBQ1';
SET OutputRoot.MQMD.Format=MQFMT_RF_HEADER_2;
Set OutputRoot.MQRFH2.psc.Command='Sub';
Set OutputRoot.MQRFH2.psc.Topic='IBM/Price';
Set OutputRoot.MQRFH2.psc.QName='SUBQ1';
Set OutputRoot.MQRFH2.psc.QMgrName='WBRK_QMGR';
where SUBQ1 is the queue where i want the subscriptions to arrive
What is the message that i should put in MQInput node of the subscribe flow? Is my flow correct? Or do i need any more flows?I am not using any JMS application as of now.
You don't need a "subscribe flow" to send a subscription registration to the broker. Write the flow that receives from your SUBQ1 queue and process the publication.
Use something like rfhutil (support pac IH03) to register a "static" (my term) subscription. Then when your publication flow produces a publication, it will be received by your SUBQ1 flow and processed.
HTH _________________ Regards
John
The pain of low quaility far outlasts the joy of low price.
Whatever you have done is correct. You can probably get the value for Topic, QName and QMgrName from input. You can have it as an XML and parse it to get the value. Dont forget to set the Domain to XML in input node node incase you are using XML as input msg. Hope you have given the correct broker queue name in output node.
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