|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
MQ pub sub question |
« View previous topic :: View next topic » |
Author |
Message
|
charanR |
Posted: Fri Apr 13, 2018 2:07 pm Post subject: MQ pub sub question |
|
|
Apprentice
Joined: 05 Oct 2017 Posts: 28
|
Hello,
I did not work much on pub/sub until now but I'm trying to implement a solution that is similar to stock prices subscription. IBM docs refer this example all over so I'm sure this is possible but just not sure how to implement it.
Requirement:
I want the ability to publish a message to topic (in fact the application is actually sending a message to an ALIAS queue as an abstraction to topic) and let the subscribers get the message. Now, I have this configured already but with the destination set to a queue inside the subscription configuration. The downside of this is I have to create a new subscription every time a new application wants to get the message.
Is there a way to actually implement this without any administration and let any number of applications subscribe to the topic.
Is there a way for all the applications to get the message using MQGET instead of MQSUB using ALIAS ? I'm sure not possible but questioning here if I can here any new ideas. |
|
Back to top |
|
 |
bruce2359 |
Posted: Fri Apr 13, 2018 3:09 pm Post subject: |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9469 Location: US: west coast, almost. Otherwise, enroute.
|
If I understand your requirement...
If you have defined a topic with DEFINE TOPIC(topicname) and DEST(queuename), publications to the topic will end up in the named queue.
A consuming app need only MQOPEN the queue, and MQGET messages from the queue. _________________ 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 |
|
 |
mvic |
Posted: Fri Apr 13, 2018 3:57 pm Post subject: Re: MQ pub sub question |
|
|
 Jedi
Joined: 09 Mar 2004 Posts: 2080
|
charanR wrote: |
Is there a way for all the applications to get the message using MQGET instead of MQSUB using ALIAS ? I'm sure not possible but questioning here if I can here any new ideas. |
Start with the sample programs, which should show how MQSUB is used in practice.
Yes an application gets a message using MQGET, even in pub/usb. |
|
Back to top |
|
 |
charanR |
Posted: Fri Apr 13, 2018 5:46 pm Post subject: |
|
|
Apprentice
Joined: 05 Oct 2017 Posts: 28
|
|
Back to top |
|
 |
bruce2359 |
Posted: Fri Apr 13, 2018 6:12 pm Post subject: |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9469 Location: US: west coast, almost. Otherwise, enroute.
|
Not sure what you mean. There are 51 pages in this document. Which pages are you referring to? _________________ 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 |
|
 |
|
|
 |
|
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
|
|
|
|