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 IndexGeneral IBM MQ SupportMQ pub sub question

Post new topicReply to topic
MQ pub sub question View previous topic :: View next topic
Author Message
charanR
PostPosted: Fri Apr 13, 2018 2:07 pm Post subject: MQ pub sub question Reply with quote

Novice

Joined: 05 Oct 2017
Posts: 20

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
View user's profile Send private message
bruce2359
PostPosted: Fri Apr 13, 2018 3:09 pm Post subject: Reply with quote

Poobah

Joined: 05 Jan 2008
Posts: 8192
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 would tell you a UDP joke, but you might not get it.
Back to top
View user's profile Send private message
mvic
PostPosted: Fri Apr 13, 2018 3:57 pm Post subject: Re: MQ pub sub question Reply with quote

Jedi

Joined: 09 Mar 2004
Posts: 2050

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
View user's profile Send private message
charanR
PostPosted: Fri Apr 13, 2018 5:46 pm Post subject: Reply with quote

Novice

Joined: 05 Oct 2017
Posts: 20

I'm basically looking for state publication as described in this document.

ftp://public.dhe.ibm.com/software/integration/support/supportpacs/individual/ma0dmqv7.pdf
Back to top
View user's profile Send private message
bruce2359
PostPosted: Fri Apr 13, 2018 6:12 pm Post subject: Reply with quote

Poobah

Joined: 05 Jan 2008
Posts: 8192
Location: US: west coast, almost. Otherwise, enroute.

charanR wrote:
I'm basically looking for state publication as described in this document.

ftp://public.dhe.ibm.com/software/integration/support/supportpacs/individual/ma0dmqv7.pdf

Not sure what you mean. There are 51 pages in this document. Which pages are you referring to?
_________________
I would tell you a UDP joke, but you might not get it.
Back to top
View user's profile Send private message
Display posts from previous:
Post new topicReply to topic Page 1 of 1

MQSeries.net Forum IndexGeneral IBM MQ SupportMQ pub sub question
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.