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 » General IBM MQ Support » Topic to Queue or Composite Destination using WMQ

Post new topic  Reply to topic
 Topic to Queue or Composite Destination using WMQ « View previous topic :: View next topic » 
Author Message
aerosteak
PostPosted: Thu Aug 20, 2009 6:12 am    Post subject: Topic to Queue or Composite Destination using WMQ Reply with quote

Newbie

Joined: 16 Oct 2008
Posts: 9

Hello,

We have an application that needs to send the same Event Message to multiple applications (basic pub-sub pattern) with persistent feature on all subscriber.

After reading on the Topic implementation and Durable subscriber, I have some issues with this solution:
- Hard to debug/see event on a particular Subscriber because only one Subscriber can connect on a topic using the same ClientID.
- Some subscriber applications only support MQ queue, they cannot connect to Topic.

So, Is there a way to configure WMQ to implement this pattern using simple queues?

I would prefer not to have to develop an application that read a queue and put a copy of the message into each destination queue.

Note 1 : that I don’t need ‘dynamic subscription’, I only have a limited number of subscriber and I don’t mind configuring new queues for a new subscriber.

Note 2: In other JMS Broker, I have seen the possibility to do this (Composite destination).
See: http://activemq.apache.org/composite-destinations.html


Thank you
Back to top
View user's profile Send private message
markt
PostPosted: Thu Aug 20, 2009 6:54 am    Post subject: Reply with quote

Knight

Joined: 14 May 2002
Posts: 508

DEFINE QALIAS(xx) TARGTYPE(TOPIC)
Back to top
View user's profile Send private message
aerosteak
PostPosted: Thu Aug 20, 2009 12:52 pm    Post subject: Reply with quote

Newbie

Joined: 16 Oct 2008
Posts: 9

Hello,

I think the queue alias only give another name for the same queue. For a PubSub pattern using queues, I need a queue for the publisher, and separates queues for each individual subscriber.

Can this be done by configuration of I need to implement a small application to perform the copy of each messages?

Thank you
Back to top
View user's profile Send private message
mqjeff
PostPosted: Thu Aug 20, 2009 1:28 pm    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

In MQ v7, a QALIAS can point to a Topic as well as a Queue.

If you use standard MQ programming to Open a QALIAS that points to a Topic, when you Put a message, it will be published to the subscribers to that topic.

You can use DEF SUB to create a static subscription to that topic that points to a standard queue.

That is, "DEF QALIAS(xx) TARGTYPE(TOPIC)" == "Composite Destination".
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 » General IBM MQ Support » Topic to Queue or Composite Destination using WMQ
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.