|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
JMS Publish/Subscribe |
« View previous topic :: View next topic » |
Author |
Message
|
envee_10 |
Posted: Sun Apr 21, 2013 11:21 pm Post subject: JMS Publish/Subscribe |
|
|
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 |
|
 |
Vitor |
Posted: Mon Apr 22, 2013 7:00 am Post subject: Re: JMS Publish/Subscribe |
|
|
 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 |
|
 |
envee_10 |
Posted: Mon Apr 22, 2013 8:32 am Post subject: |
|
|
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 |
|
 |
|
|
 |
|
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
|
|
|
|