Author |
Message
|
jim |
Posted: Wed May 07, 2014 11:03 am Post subject: Client channel |
|
|
Voyager
Joined: 26 Nov 2013 Posts: 94
|
While creating the client channel I have mention wrong QMGR name in the definition but Iam able to connect to the qmgr.
What is exact use of defining the QMGR name in client channel connection definition |
|
Back to top |
|
 |
bruce2359 |
Posted: Wed May 07, 2014 11:35 am Post subject: |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9470 Location: US: west coast, almost. Otherwise, enroute.
|
What MQ environment variables did you set/export?
If none, did you bind the executable with client bindings? Or server bindings? _________________ I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live. |
|
Back to top |
|
 |
exerk |
Posted: Wed May 07, 2014 11:46 am Post subject: Re: Client channel |
|
|
 Jedi Council
Joined: 02 Nov 2006 Posts: 6339
|
jim wrote: |
What is exact use of defining the QMGR name in client channel connection definition |
So that you connect to that particular queue manager, assuming the CONNAME values are correct for it -if you want to connect to queue manager FRED you're hardly likely to put queue manager BARNEY in the definition, speaking of which you will find THIS link of use... _________________ 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 |
|
 |
PaulClarke |
Posted: Wed May 07, 2014 11:54 am Post subject: |
|
|
 Grand Master
Joined: 17 Nov 2005 Posts: 1002 Location: New Zealand
|
If you have specified the wrong QM in the CCDT does that also imply that you are specifying the wrong QM name on the MQCONN() call ? Because unless you are then your client channel definition won't be being used anyway.
Cheers,
Paul. _________________ Paul Clarke
MQGem Software
www.mqgem.com |
|
Back to top |
|
 |
jim |
Posted: Thu May 08, 2014 2:20 am Post subject: Re: Client channel |
|
|
Voyager
Joined: 26 Nov 2013 Posts: 94
|
exerk wrote: |
jim wrote: |
What is exact use of defining the QMGR name in client channel connection definition |
So that you connect to that particular queue manager, assuming the CONNAME values are correct for it -if you want to connect to queue manager FRED you're hardly likely to put queue manager BARNEY in the definition, speaking of which you will find THIS link of use... |
serve name:9.9.9.1
QMGR name:DALE
serve name:9.9.9.2
another QMGR :FRED
In QMGR " DALE" I will define the CLNTCONN channel
define channel(IN.SVRCONN2) chltype(CLNTCONN) conname(9.9.9.2) qmname(FRED)
Can client application will able to connect to QMGR FRED by using MQCONN(*FRED) |
|
Back to top |
|
 |
PaulClarke |
Posted: Thu May 08, 2014 2:32 am Post subject: |
|
|
 Grand Master
Joined: 17 Nov 2005 Posts: 1002 Location: New Zealand
|
Yes, that should work provided the client is installed and the application is linked to the client.
Since your Queue Manager really is called FRED then you need only specify MQCONN(FRED). The asterisk (*) is only really useful if the Queue Manager name you specify in the MQCONN() verb is not the actual name of the Queue Manager.
Cheers,
Paul. _________________ Paul Clarke
MQGem Software
www.mqgem.com |
|
Back to top |
|
 |
jim |
Posted: Thu May 08, 2014 2:46 am Post subject: |
|
|
Voyager
Joined: 26 Nov 2013 Posts: 94
|
PaulClarke wrote: |
Yes, that should work provided the client is installed and the application is linked to the client.
Since your Queue Manager really is called FRED then you need only specify MQCONN(FRED). The asterisk (*) is only really useful if the Queue Manager name you specify in the MQCONN() verb is not the actual name of the Queue Manager.
Cheers,
Paul. |
Thanks Paul  |
|
Back to top |
|
 |
|