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 » IBM MQ Java / JMS » JMS Publish/Subscribe

Post new topic  Reply to topic
 JMS Publish/Subscribe « View previous topic :: View next topic » 
Author Message
envee_10
PostPosted: Sun Apr 21, 2013 11:21 pm    Post subject: JMS Publish/Subscribe Reply with quote

Newbie

Joined: 19 Apr 2013
Posts: 3

Hi Experts,

I have the following setup :

1 Topic - TOPIC.1

1 Queue - QUEUE.1

1 Subscription which defines QUEUE.1 as the subscriber of the TOPIC.1

If I publish messages to the Topic (TOPIC.1), will they automatically be broadcast to the Queue (QUEUE.1) even if there is no Consumer application running listening for messages on the Queue.
(Assuming that I configure the default delivery mode of the TOPIC as PERSISTENT and the Persistence of messages in the queue as PERSISTENT)

Please help me out here.javascript:emoticon('')
I am badly stuck

When I try to publish messages to the topic using the sample application JmsJndiProducer, it does not return any error, and returns with a success message. But when I try to browse messages on the queue QUEUE.1, there is nothing there.

When I try using the "Test Publication" feature in MQ Explorer GUI, the message is broadcast to the Queue.
Back to top
View user's profile Send private message
Vitor
PostPosted: Mon Apr 22, 2013 7:00 am    Post subject: Re: JMS Publish/Subscribe Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

envee_10 wrote:
If I publish messages to the Topic (TOPIC.1), will they automatically be broadcast to the Queue (QUEUE.1) even if there is no Consumer application running listening for messages on the Queue.
(Assuming that I configure the default delivery mode of the TOPIC as PERSISTENT and the Persistence of messages in the queue as PERSISTENT)


Well...

envee_10 wrote:
When I try using the "Test Publication" feature in MQ Explorer GUI, the message is broadcast to the Queue.


...you seem to have answered your own question. Assuming you only have the objects you've described and no application.

envee_10 wrote:
When I try to publish messages to the topic using the sample application JmsJndiProducer, it does not return any error, and returns with a success message. But when I try to browse messages on the queue QUEUE.1, there is nothing there.


Is this the same problem you're describing here?
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
envee_10
PostPosted: Mon Apr 22, 2013 8:32 am    Post subject: Reply with quote

Newbie

Joined: 19 Apr 2013
Posts: 3

Yes. It is the same problem I have described in the post that you are referring to in the link.

Sorry, but I did not quite understand your answer. Can you please be a bit more clear ?

I read a post by another expert on this website that I should create a Topic , Subscribtions, Subscriber queues and a Topic Alias Queue. And then publish messages to the Topic Alias Queue so that the messages get broadcast to all the subscriber queues. I tried this and it does work.

However, I thought instead of publishing to the Topic Alias Queue, it would even work if I published to the Topic itself and then wouldn't the administrative subscriptions that I created take care of broadcasting the message to the subscriber queues ?

Thanks.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » JMS Publish/Subscribe
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.