|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
pub/sub question |
« View previous topic :: View next topic » |
Author |
Message
|
mqs_guy |
Posted: Tue Nov 18, 2003 3:47 pm Post subject: pub/sub question |
|
|
Acolyte
Joined: 09 May 2002 Posts: 71
|
Hi,
I have a question regarding pub/sub.
When a topic is published, the publication message, falls to the queue of the registered subscriber. The name of the queue where the publication would fall is set using MQRFH2.psc.QName='QUEUE1'.
Now, this is the case with 1 subscriber. If i want 2 applications to register for a topic how would i set it? Will i have 2 lines in the compute node which says different queue names? example:
MQRFH2.psc.QName='QUEUE1'
MQRFH2.psc.QName='QUEUE2'
Is the MQRFH2.psc.QName an array??
Do i have to specify:
MQRFH2.psc.QName[0]='QUEUE1'
MQRFH2.psc.QName[1]='QUEUE2'
Please suggest..
Another question is, whenever i publish a message, the publication message falls to the queue of registered subscriber. This is what is expected.
But, i notice that its also goes to the dead letter queue..wonder why is it happening?
Thanks in Advance.
Regards,
Vishal Agrawal |
|
Back to top |
|
 |
jefflowrey |
Posted: Tue Nov 18, 2003 5:11 pm Post subject: Re: pub/sub question |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
mqs_guy wrote: |
The name of the queue where the publication would fall is set using MQRFH2.psc.QName='QUEUE1'. |
No, I don't think so. I think you put it on the on the broker's publication queue. And then the broker worries about putting it on all the queues that are registered subscribers. But I'm not at work right now, so I can't verify completely.
There's a section on Publish/Subscribe in the Programming guide for WMQI.
mqs_guy wrote: |
Another question is, whenever i publish a message, the publication message falls to the queue of registered subscriber. This is what is expected.
But, i notice that its also goes to the dead letter queue..wonder why is it happening? |
That would depend on what the reason code in the Dead Letter Header says. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
Robert |
Posted: Tue Nov 18, 2003 5:35 pm Post subject: |
|
|
Apprentice
Joined: 22 Aug 2002 Posts: 46 Location: Quebec, Canada
|
mqs_guy wrote:
The name of the queue where the publication would fall is set using MQRFH2.psc.QName='QUEUE1'.
No, I don't think so. I think you put it on the on the broker's publication queue. And then the broker worries about putting it on all the queues that are registered subscribers. But I'm not at work right now, so I can't verify completely.
-------------------
Jeff is right. You don't have to worry about the publishing/subscribing queue match. Its the broker's job. We do it on a daily basis with JMS messages with the WAS/MQ/WBI Message Broker combination. |
|
Back to top |
|
 |
Missam |
Posted: Thu Nov 20, 2003 2:29 pm Post subject: |
|
|
Chevalier
Joined: 16 Oct 2003 Posts: 424
|
Hi,
This is a way of creating subsriptions and testing the message flow
MQRFH2.psc.QName
is not an array.every time you want to create new subscription you have to run the flow by giving different QName on the same topic.
Thanx,
Sam. |
|
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
|
|
|
|