|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Can I publish to mq queue using topic ? |
« View previous topic :: View next topic » |
Author |
Message
|
MHRahaman |
Posted: Thu Apr 20, 2006 9:58 am Post subject: Can I publish to mq queue using topic ? |
|
|
Novice
Joined: 22 Dec 2005 Posts: 14
|
Hi,
I am wondering if we can publish messages to MQ queue using TopicConnection (NOT QueueConnection) ? If yes, can you guide me
where I can find sample or example. I am using MQ 6.0.
Thanks
Rahaman |
|
Back to top |
|
 |
jefflowrey |
Posted: Thu Apr 20, 2006 10:09 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
Messages published to Topics always go to the broker.
The broker then gives those messages to the subscribers, wherever the subscribers have asked to have them put - which is usually to an MQ Queue. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
MHRahaman |
Posted: Thu Apr 20, 2006 11:30 am Post subject: Can I publish to mq queue using topic ? |
|
|
Novice
Joined: 22 Dec 2005 Posts: 14
|
Thanks jefflowrey, you mean after subscriber recieved the message use MQ APIs explicitly to put the message to the Q. Though it seems overhead but we have an option. Thanks. |
|
Back to top |
|
 |
wschutz |
Posted: Thu Apr 20, 2006 11:37 am Post subject: Re: Can I publish to mq queue using topic ? |
|
|
 Jedi Knight
Joined: 02 Jun 2005 Posts: 3316 Location: IBM (retired)
|
MHRahaman wrote: |
Hi,
I am wondering if we can publish messages to MQ queue using TopicConnection (NOT QueueConnection) ? If yes, can you guide me
where I can find sample or example. I am using MQ 6.0.
Thanks
Rahaman |
What are you trying to accomplish? Maybe there are other, better ways to do it. _________________ -wayne |
|
Back to top |
|
 |
jefflowrey |
Posted: Thu Apr 20, 2006 11:38 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
No.
Subscribers receive publications from queues. That is, a TopicSession points to a queue, at least the consumer does.
By default, from a SYSTEM.JMS.* queue. At least if you're using the stock Broker, and not Message or Event Broker.
Go back and re-read your Using Java manual, and the Using Pub/Sub manual as well.
Or just register a durable subscriber and never receive messages, and find out which queue your MQ admin yells at you for filling up. _________________ I am *not* the model of the modern major general. |
|
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
|
|
|
|