|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
PUB/SUB Message Flow |
« View previous topic :: View next topic » |
Author |
Message
|
solomita |
Posted: Wed Oct 15, 2003 1:06 pm Post subject: PUB/SUB Message Flow |
|
|
Voyager
Joined: 06 May 2003 Posts: 94
|
Besides using an MQInput Node and a Publication node as in the Soccer example for publish/subscribe, what else would need to be done. I would like to set up a sample flow using publish/subscribe. |
|
Back to top |
|
 |
jefflowrey |
Posted: Thu Oct 16, 2003 5:41 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
You need two separate flows.- A flow that will publish data
- A flow that will receive publications
The publication node is used to send data that is being published to the broker. You use a standard MQInput node to receive publications.
There is a third thing you need - to subscribe your receiving flow to the publications you want. This is accomplished by putting an appropriately formed subscription request (the right data in the psc folder in the MQRFH2) onto SYSTEM.BROKER.CONTROL.QUEUE. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
solomita |
Posted: Thu Oct 16, 2003 5:50 am Post subject: |
|
|
Voyager
Joined: 06 May 2003 Posts: 94
|
Is there somewhere where I can find step by step directions to create a sample of a pub/sub besdies the Soocer/Scribble ones? I have an idea that one flow will contain the MQInput and Publication node but I am not sure about the second flow or how to put the subscription request. Also, what about the subscriptioin point on the Publication node? |
|
Back to top |
|
 |
jefflowrey |
Posted: Thu Oct 16, 2003 6:00 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
The Programming Guide for WMQI has a detailed description of Pub/Sub, including subscription points
Step by Step, it's just what I said. - Create a message flow to publish data - create or augment data from an input, and add the appropriate topic and other information to the psc folder, and give this to a publication node.
- Create a message flow to receive data from publications - Use a standard MQInput node to receive your data and do something with it.
- Create a registration message to subscribe the queue used in your MQInput node for your subscriber flow, and put this message on SYSTEM.BROKER.CONTROL.QUEUE
Of course, the really fun things about Pub/Sub with WMQI are retained and persistant(!) publications, and that subscriptions can include where clauses on Content as well as be based on Topic (e.g. give me all cars that are Ford Mustang Convertibles that have a price less than 10,000. ) _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|