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 » Flow for subscribing in message broker

Post new topic  Reply to topic
 Flow for subscribing in message broker « View previous topic :: View next topic » 
Author Message
apurv
PostPosted: Mon Jan 16, 2006 4:30 am    Post subject: Flow for subscribing in message broker Reply with quote

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.

Thanks,
Apurv.
Back to top
View user's profile Send private message
jsware
PostPosted: Mon Jan 16, 2006 5:04 am    Post subject: Reply with quote

Chevalier

Joined: 17 May 2001
Posts: 455

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.
Back to top
View user's profile Send private message
kspranava
PostPosted: Mon Jan 16, 2006 9:39 pm    Post subject: Reply with quote

Centurion

Joined: 27 Apr 2003
Posts: 124

Hi Apurv,

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.

Thanks.
Pranava.
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 » Flow for subscribing in message broker
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.