Author |
Message
|
harsha_sg |
Posted: Thu May 01, 2014 7:41 am Post subject: PUB/SUB Implementation in WMB |
|
|
Newbie
Joined: 01 May 2014 Posts: 5
|
|
Back to top |
|
 |
Vitor |
Posted: Thu May 01, 2014 8:03 am Post subject: Re: PUB/SUB Implementation in WMB |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
harsha_sg wrote: |
still not able to get the output. |
What happens? Nothing? Error messages? Computer destroyed by flying monkeys?
What do the logs say? Are you sure messages are being published? Are you sure the subscribers are properly registered? Are you sure the topic strings match? Etc, etc....?
Better information, better advice. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
smdavies99 |
Posted: Thu May 01, 2014 8:14 am Post subject: |
|
|
 Jedi Council
Joined: 10 Feb 2003 Posts: 6076 Location: Somewhere over the Rainbow this side of Never-never land.
|
IMHO, it is a lot easier to let WMQ do all the hard work for you.
Then all you need to do is write your message(with an MQOutput Node) to an appropriately configured ALIAS Queue and it is JOB DONE.
A long time ago, all Pub/Sub had to be done in Broker. There was really no facility for it inside WMQ. That all changed a few versions ago. The Publish Node is (IMHO) a relic from those olden days
These days you can implement PUBlish just by WMQ alone.
Define a TOPIC
Define an ALIAS Q that uses the Topic as a target
Define 1..n subscriptions to that topic.
No broker needed. _________________ WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995
Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions. |
|
Back to top |
|
 |
zpat |
Posted: Thu May 01, 2014 9:38 am Post subject: |
|
|
 Jedi Council
Joined: 19 May 2001 Posts: 5866 Location: UK
|
Fine for a limited number fixed topic strings.
However the real power of pub/sub lies with contextually derived, and detailed topic strings and there could be thousands (think of shares on an exchange for example) - even more when other topic qualifiers are added (like buy/sell, currency etc). _________________ Well, I don't think there is any question about it. It can only be attributable to human error. This sort of thing has cropped up before, and it has always been due to human error. |
|
Back to top |
|
 |
harsha_sg |
Posted: Thu May 01, 2014 9:55 am Post subject: Re: PUB/SUB Implementation in WMB |
|
|
Newbie
Joined: 01 May 2014 Posts: 5
|
Vitor wrote: |
harsha_sg wrote: |
still not able to get the output. |
What do the logs say? Are you sure messages are being published? Are you sure the subscribers are properly registered? Are you sure the topic strings match? Etc, etc....?
Better information, better advice. |
Not getting any error..,even in debugging..
I've defined a topic in MQ...,and designed a Publication flow with 'MQINPUT'>>>'PUBLISH NODE' and in 'Topic' block of 'Advanced' option i've specified the topic name which i've created in MQ
Meanwhile have defined an subscription for the topic destined to particular local queue.
The destined Queue depth remains zero even after publishing..am not sure whether the data is published after all.
Is there any configuration in publication flow besides updating the 'Topic'.??
How can i know whether data is published successfully..?
 |
|
Back to top |
|
 |
fjb_saper |
Posted: Thu May 01, 2014 11:55 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
Quote: |
How can i know whether data is published successfully..? |
Make the publish message Request/Reply and set the replyto queue to an inspection queue. The qmgr will send the status message for the attempted publication to the reply to queue.
Have fun  _________________ MQ & Broker admin |
|
Back to top |
|
 |
|