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 » Can I publish to mq queue using topic ?

Post new topic  Reply to topic
 Can I publish to mq queue using topic ? « View previous topic :: View next topic » 
Author Message
MHRahaman
PostPosted: Thu Apr 20, 2006 9:58 am    Post subject: Can I publish to mq queue using topic ? Reply with quote

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
View user's profile Send private message
jefflowrey
PostPosted: Thu Apr 20, 2006 10:09 am    Post subject: Reply with quote

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
View user's profile Send private message
MHRahaman
PostPosted: Thu Apr 20, 2006 11:30 am    Post subject: Can I publish to mq queue using topic ? Reply with quote

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
View user's profile Send private message
wschutz
PostPosted: Thu Apr 20, 2006 11:37 am    Post subject: Re: Can I publish to mq queue using topic ? Reply with quote

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
View user's profile Send private message Send e-mail AIM Address
jefflowrey
PostPosted: Thu Apr 20, 2006 11:38 am    Post subject: Reply with quote

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
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 » Can I publish to mq queue using topic ?
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.