-
Apr 27th, 2010, 03:26 AM
#1
Using JMSTemplate with MQDistributionList
Hi folks,
Has someone already used IBM MQDistributionList with JMSTemplate?
I'm looking for the best way to do it...
Any help would be most welcome...
-
Apr 28th, 2010, 06:57 AM
#2
From what I can see from the JavaDoc for MQDistributionList, this is not part of the JMS interface, but belongs to the native Java interface to WebSphere MQ. The JMSTemplate doesn't support the native interface. One possible way of emulating the behaviour would be to subclass the JMSTemplate and allow sending to multiple destinations.
-
Apr 28th, 2010, 07:20 AM
#3
Thanks for your help. That's exactly what i've done.
The fact is that there is no way to abstract MQDistributionList as a simple JMS Destination. You have to do it the IBM way...
-
Apr 29th, 2010, 03:08 AM
#4
Just another idea:
If you're allowed to use topics instead of queues, you could use durable subscribers. One of the nicer things about WebSphere MQ is its ability to cluster durable subscribers.
The behaviour would be the same as sending one message to multiple queues. Plus you could use an unmodified JMSTemplate.
-
Apr 29th, 2010, 03:51 AM
#5
I know, that was my first idea, but the MOM architect imposed it on us...
Finally I have made my own mq api native template.
Thank you again!
-
Apr 29th, 2010, 04:01 AM
#6
Would you mind posting the source of your template? It might be helpful for other programmers.
-
May 10th, 2010, 10:48 AM
#7
Hi,
Finally, I dismissed the use of MQDistributionList because we cannot use it with JTA. We are gonna use the simple way with IBM JMS API and JMSTemplate.
I explained that to the MOM team and they agreed...
Link to IBM website about it.
So if one day you have to use some native Java API, ask about JEE integration before. That's what I've learnt.
Thanks!
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules