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 » PUB/SUB Message Flow

Post new topic  Reply to topic
 PUB/SUB Message Flow « View previous topic :: View next topic » 
Author Message
solomita
PostPosted: Wed Oct 15, 2003 1:06 pm    Post subject: PUB/SUB Message Flow Reply with quote

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
View user's profile Send private message Yahoo Messenger
jefflowrey
PostPosted: Thu Oct 16, 2003 5:41 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

You need two separate flows.
  1. A flow that will publish data
  2. 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
View user's profile Send private message
solomita
PostPosted: Thu Oct 16, 2003 5:50 am    Post subject: Reply with quote

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
View user's profile Send private message Yahoo Messenger
jefflowrey
PostPosted: Thu Oct 16, 2003 6:00 am    Post subject: Reply with quote

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
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 » PUB/SUB Message Flow
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.