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 » Create physical destinations directly in JMS for a Queue ?

Post new topic  Reply to topic
 Create physical destinations directly in JMS for a Queue ? « View previous topic :: View next topic » 
Author Message
schroederms
PostPosted: Fri Feb 27, 2004 1:16 pm    Post subject: Create physical destinations directly in JMS for a Queue ? Reply with quote

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
View user's profile Send private message
bower5932
PostPosted: Fri Feb 27, 2004 2:12 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » Create physical destinations directly in JMS for a Queue ?
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.