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 Index » WebSphere Message Broker (ACE) Support » PUB/SUB Implementation in WMB

Post new topic  Reply to topic
 PUB/SUB Implementation in WMB « View previous topic :: View next topic » 
Author Message
harsha_sg
PostPosted: Thu May 01, 2014 7:41 am    Post subject: PUB/SUB Implementation in WMB Reply with quote

Newbie

Joined: 01 May 2014
Posts: 5

Hello all,
I've gotta scenario to implement a simple PUB/SUB concept in WMB..,I went through the IBM Info center though it had theoretical concept..it didnt had much abt the Implementation..,


http://transformatech.wordpress.com/2013/09/13/simple-pubsub-example-using-websphere-message-broker-v7-mq-v-7/

I've followed the steps as mentioned in the above article..,still not able to get the output.Please lemme know if there is some error in those steps.

Any link related to the PUB/SUB implementation ll be much helpful.

Thanks in advance
Back to top
View user's profile Send private message
Vitor
PostPosted: Thu May 01, 2014 8:03 am    Post subject: Re: PUB/SUB Implementation in WMB Reply with quote

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
View user's profile Send private message
smdavies99
PostPosted: Thu May 01, 2014 8:14 am    Post subject: Reply with quote

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
View user's profile Send private message
zpat
PostPosted: Thu May 01, 2014 9:38 am    Post subject: Reply with quote

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
View user's profile Send private message
harsha_sg
PostPosted: Thu May 01, 2014 9:55 am    Post subject: Re: PUB/SUB Implementation in WMB Reply with quote

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
View user's profile Send private message
fjb_saper
PostPosted: Thu May 01, 2014 11:55 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » PUB/SUB Implementation in WMB
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.