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 » How to get the channel name after connecting to a QMGR?

Post new topic  Reply to topic
 How to get the channel name after connecting to a QMGR? « View previous topic :: View next topic » 
Author Message
issac
PostPosted: Tue Dec 27, 2011 5:46 pm    Post subject: How to get the channel name after connecting to a QMGR? Reply with quote

Disciple

Joined: 02 Oct 2008
Posts: 158
Location: Shanghai

Hello, guys

I have successfully connected to a WMQ V7 QMGR by CCDT with the following code:
Code:

   private void process(String[] args) throws IllegalOptionValueException, UnknownOptionException, MalformedURLException, MQException {
      this.parseCommandLineArguments(args);
      ProgressLog.progress_LV1("Connecting to "+pstr("qmgr")+" with CCDT "+pstr("ccdtUrl")+"...");
      final MQQueueManager qmgr = new MQQueueManager(pstr("qmgr"), new URL(pstr("ccdtUrl")));
      ProgressLog.progress_LV2("QMGR successfully connected.");
      qmgr.
   }


How to identify the channel I'm using please? I'm trying to do so to understand how the client weight param of a CLNTCONN works.


Thank you!
_________________
Bazinga!
Back to top
View user's profile Send private message
exerk
PostPosted: Wed Dec 28, 2011 12:22 am    Post subject: Reply with quote

Jedi Council

Joined: 02 Nov 2006
Posts: 6339

The point of a CCDT is so that you don't have to worry about which channel you're using, or dependent on queue manager name supplied, you want to use a specific channel, but which again is abstracted for you. And what don't you understand about random selection of channels, or are you also using affinity?
_________________
It's puzzling, I don't think I've ever seen anything quite like this before...and it's hard to soar like an eagle when you're surrounded by turkeys.
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 » How to get the channel name after connecting to a QMGR?
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.