|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Topic to Queue or Composite Destination using WMQ |
« View previous topic :: View next topic » |
Author |
Message
|
aerosteak |
Posted: Thu Aug 20, 2009 6:12 am Post subject: Topic to Queue or Composite Destination using WMQ |
|
|
 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 |
|
 |
markt |
Posted: Thu Aug 20, 2009 6:54 am Post subject: |
|
|
 Knight
Joined: 14 May 2002 Posts: 508
|
DEFINE QALIAS(xx) TARGTYPE(TOPIC) |
|
Back to top |
|
 |
aerosteak |
Posted: Thu Aug 20, 2009 12:52 pm Post subject: |
|
|
 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 |
|
 |
mqjeff |
Posted: Thu Aug 20, 2009 1:28 pm Post subject: |
|
|
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 |
|
 |
|
|
 |
|
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
|
|
|
|