|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Create physical destinations directly in JMS for a Queue ? |
« View previous topic :: View next topic » |
Author |
Message
|
schroederms |
Posted: Fri Feb 27, 2004 1:16 pm Post subject: Create physical destinations directly in JMS for a Queue ? |
|
|
 Disciple
Joined: 21 Jul 2003 Posts: 169 Location: IA
|
I know how to create a physical destination for a queue on a perticular queue manager but .....
Take this example of the createQueue():
[color=red][b]queue://DC1Q001/MY.QUEUE?targetClient=1[/b][/color]
However, since we run a three clustered queue managers, I'm wanting to connect to DC1Q000 always and from there it should see what queue manager MY.QUEUE is on.
So if we have three queue managers DC1Q000, DC1Q001 and DC1Q002, I don't really care where the queue is defined, so I code the createQueue() this way:
[color=blue][b]queue://DC1Q000/MY.QUEUE?targetClient=1[/b][/color]
But when it goes to do createSender, it jokes with this:
[color=darkred][b]javax.jms.InvalidDestinationException: MQJMS2008: failed to open MQ queue[/b][/color]
Not sure how I specify a "clustered" queue.
Anyone ?
Thanks,
Mike :-? |
|
Back to top |
|
 |
bower5932 |
Posted: Fri Feb 27, 2004 2:12 pm Post subject: |
|
|
 Jedi Knight
Joined: 27 Aug 2001 Posts: 3023 Location: Dallas, TX, USA
|
I've never built my queue definitions like you have. However, I would guess that you need to leave the qmgr name out of the queue name. This is probably telling MQ to look for this queue on a specific queue manager. If you leave it blank, MQ should go "find it" in the cluster. |
|
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
|
|
|
|