Author |
Message
|
ashritha |
Posted: Wed Dec 28, 2005 9:13 am Post subject: Help in understanding Pub/sub Concepts |
|
|
Voyager
Joined: 25 Jul 2005 Posts: 85
|
Hello,
I am trying to understand the pub/sub concepts in MB.
I have a flow which pulishes a message and another flow for subscribing the published messages.
When the message is published, where does it reside?
The documentation says the publication node publishes the message to the broker and the broker routes it to the subscriber, but where does the message actually stay in the broker. does it physically reside on any of the broker queues???
The subscriber flow has an input node to which i will have to send a subscriber request.
Now, to which queue should the subscriber request go and how does the request message look like?
Also, do i have to send a request for every message published on the same topic?
I was expecting that if there is a subscriber for a topic he should be receiving the published messages automatically without sending the requests everytime. But how do I achieve this?
Thanks. |
|
Back to top |
|
 |
vennela |
Posted: Wed Dec 28, 2005 10:32 am Post subject: |
|
|
 Jedi Knight
Joined: 11 Aug 2002 Posts: 4055 Location: Hyderabad, India
|
No doube posts please......
Quote: |
When the message is published, where does it reside? |
Why do you want to know?
It resides somewhere in one of those broker queues.
Quote: |
Now, to which queue should the subscriber request go and how does the request message look like? |
http://www.mqseries.net/phpBB2/viewtopic.php?t=11266&highlight=pub+sub+example
Quote: |
I was expecting that if there is a subscriber for a topic he should be receiving the published messages automatically without sending the requests everytime. But how do I achieve this? |
I think it depends on what kind of subscription message you put. I think you may want to explore the subscription options.
Use RFHUTIL support pac initially to put a subscription message. |
|
Back to top |
|
 |
ashritha |
Posted: Wed Dec 28, 2005 11:14 am Post subject: |
|
|
Voyager
Joined: 25 Jul 2005 Posts: 85
|
Vennela,
This question
Quote: |
When the message is published, where does it reside? |
was from my client. Sorry to say but I cannot give the following answer to my Client
Quote: |
Why do you want to know?
It resides somewhere in one of those broker queues. |
Thanks for the link, but it kinda did not fully answer my question.
Quote: |
I think it depends on what kind of subscription message you put. I think you may want to explore the subscription options |
I am not aware of different kinds of subscription requests and the content of them. This was one of my questions in the initial post.
I created Topics from the toolkit in the Domains view of the Administrative perspective, I can also see the Subscriptions. Do i have to do anything there???
Any help? |
|
Back to top |
|
 |
jefflowrey |
Posted: Wed Dec 28, 2005 11:28 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
Oh, Look! Documentation.
Who knew? _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
ashritha |
Posted: Wed Dec 28, 2005 11:35 am Post subject: |
|
|
Voyager
Joined: 25 Jul 2005 Posts: 85
|
Got the answer....
All the published messages go to SYSTEM.BROKER.DEFAULT.STREAM queue...
and all the subscription requests go to SYSTEM.BROKER.CONTROL.QUEUE.
Now, can anyone help me in building up the subscription message. Is it just an XML message with an element in it that needs to be verified in the esql to subscribe. |
|
Back to top |
|
 |
jefflowrey |
Posted: Wed Dec 28, 2005 11:47 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
What's this? More Documentation? _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
vennela |
Posted: Wed Dec 28, 2005 12:12 pm Post subject: |
|
|
 Jedi Knight
Joined: 11 Aug 2002 Posts: 4055 Location: Hyderabad, India
|
|
Back to top |
|
 |
ashritha |
Posted: Wed Dec 28, 2005 1:00 pm Post subject: |
|
|
Voyager
Joined: 25 Jul 2005 Posts: 85
|
Thanks vennela,
I developed the flows. But now, I am little confused with the message that I have to send to the input node of the subscription flow and may be next i will have to find a way to get all the published messages on a topic to the subscriber queue without sending the subscription requests everytime.
I need to read the documentation and browse the forums thoroughly.
Thanks for the help. |
|
Back to top |
|
 |
|