Author |
Message
|
chbushan |
Posted: Wed Apr 17, 2013 6:08 am Post subject: WMQ Pub/Sub |
|
|
 Novice
Joined: 18 Jan 2005 Posts: 11 Location: United States
|
Hi All,
I'm trying to setup Pub/Sub in MQ v7 and was able successfully test basic Pub/Sub scenario.
Now I'm trying to configure a subscriber based on Topic and also use the "Selector" within subscription.
I specified Properties - Message Properties and Selector - ReplyToQmgr=MB7QMGR.
But some reason this does not help! Any clues/help is greatly appreciated. |
|
Back to top |
|
 |
Vitor |
Posted: Wed Apr 17, 2013 6:25 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
Don't double post!  _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
Vitor |
Posted: Wed Apr 17, 2013 6:27 am Post subject: Re: WMQ Pub/Sub |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
chbushan wrote: |
Any clues/help is greatly appreciated. |
We could say the same! What language is the subscribing app written in? Why are you apparently trying to select on a queue manager name? What does "does not help" mean? You get too many subscriptions? Too few? None? What? _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
chbushan |
Posted: Wed Apr 17, 2013 6:35 am Post subject: |
|
|
 Novice
Joined: 18 Jan 2005 Posts: 11 Location: United States
|
Hi Victor, I'm sorry the double post was not intentional
I'm just trying to explore the selector field and was trying to learn how it works.
I have some messages coming from another queue manager so wanted to Test, For the same I used this ReplyToQmgr field.
There are no messages being subscribed; Messages with ReplyToQmgr as MB7QMGR are not coming to the subscribed queue. |
|
Back to top |
|
 |
Vitor |
Posted: Wed Apr 17, 2013 6:46 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
chbushan wrote: |
Hi Victor, I'm sorry the double post was not intentional |
I imagine the misspelling of my name likewise unintentional.
chbushan wrote: |
I'm just trying to explore the selector field and was trying to learn how it works.
I have some messages coming from another queue manager so wanted to Test, For the same I used this ReplyToQmgr field.
There are no messages being subscribed; Messages with ReplyToQmgr as MB7QMGR are not coming to the subscribed queue. |
You're mixing a number of terms here. Messages are not subscribed but published. Published messages will arrive on a queue as the result of a subscription. I don't immediately see what the ReplyToQmgr of a message has to do with anything, or why you'd choose to select on that, and you've not even mentioned what's doing the subscription and selection.
Review the WMQv7 pub/sub documentation and use some of the samples. Understand those, and then try your own set up. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
chbushan |
Posted: Wed Apr 17, 2013 7:21 am Post subject: |
|
|
 Novice
Joined: 18 Jan 2005 Posts: 11 Location: United States
|
I'm sorry Vitor for misspelling your name.
Sure I will go through the docs again.
Also here is the complete setup I've done..
1.Publisher with a Topic 'ABC'
2.Created an Alias Queue PUB.IN - Pointing to Topic 'ABC'
3.Created a subscription - Destination as Queue - SUB1.OUT for the Topic 'ABC'
So when I put messages to Alias Queue - I can see messages in SUB.OUT
The above case works fine.
Now I want to create another subscription - Destination as Queue - SUB2.OUT for the same Topic 'ABC' but only subscribe to messages from a particular Queue Manager. |
|
Back to top |
|
 |
Vitor |
Posted: Wed Apr 17, 2013 8:15 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
chbushan wrote: |
Now I want to create another subscription - Destination as Queue - SUB2.OUT for the same Topic 'ABC' but only subscribe to messages from a particular Queue Manager. |
Presumably purely for experimental purposes?
chbushan wrote: |
Sure I will go through the docs again |
Start with this  _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
fjb_saper |
Posted: Wed Apr 17, 2013 8:51 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
First start with a selector on true properties. Like color=blue.
You need to set the property on the message before publication.
When you understand well how this work you may want to revisit this information as to the publishing qmgr... although I think it is not desirable and pub/sub is certainly not geared up for it.
If you want to do content routing you will need to use WMB.
Have fun  _________________ MQ & Broker admin |
|
Back to top |
|
 |
gbaddeley |
Posted: Sun Apr 21, 2013 4:17 pm Post subject: Re: WMQ Pub/Sub |
|
|
 Jedi Knight
Joined: 25 Mar 2003 Posts: 2538 Location: Melbourne, Australia
|
chbushan wrote: |
Hi All,
I'm trying to setup Pub/Sub in MQ v7 and was able successfully test basic Pub/Sub scenario.
Now I'm trying to configure a subscriber based on Topic and also use the "Selector" within subscription.
I specified Properties - Message Properties and Selector - ReplyToQmgr=MB7QMGR.
But some reason this does not help! Any clues/help is greatly appreciated. |
Did you specify the ReplyToQmgr property that is in the Message Descriptor, or a user property named ReplyToQmgr? _________________ Glenn |
|
Back to top |
|
 |
chbushan |
Posted: Mon Apr 22, 2013 5:28 am Post subject: |
|
|
 Novice
Joined: 18 Jan 2005 Posts: 11 Location: United States
|
Yes; I'm using the ReplyToQmgr field is getting populated in MQMD properties.But No Luck. |
|
Back to top |
|
 |
bruce2359 |
Posted: Mon Apr 22, 2013 6:02 am Post subject: |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9469 Location: US: west coast, almost. Otherwise, enroute.
|
chbushan wrote: |
Yes; I'm using the ReplyToQmgr field is getting populated in MQMD properties.But No Luck. |
Message Properties are different from the MQMD. Message Properties are also different from the application data payload.
As mentioned in an earlier post here, the message publisher (or equivalent) application must populate Message Properties into the message so that a consuming application can use SQL92 to search Message Properties.
Read about Message Properties here http://publib.boulder.ibm.com/infocenter/wmqv7/v7r0/index.jsp?topic=%2Fcom.ibm.mq.csqzal.doc%2Ffg20530_.htm _________________ I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live. |
|
Back to top |
|
 |
|