Author |
Message
|
sebastia |
Posted: Thu Feb 15, 2007 3:38 am Post subject: SVRCONN and CLNTCONN with the same name |
|
|
 Grand Master
Joined: 07 Oct 2004 Posts: 1003
|
I can see in lots of configuration samples in mqseries.net
that people have this DUPLICATED channel name ("TOSERVER" here)
one SVRCONN, the other CLNTCONN ...
? What advanteges does this config provide ?
S.
+++
DEFINE CHANNEL ('TOSERVER') CHLTYPE(SVRCONN) +
MCAUSER('Administrator') +
REPLACE
DEFINE CHANNEL ('TOSERVER') CHLTYPE(CLNTCONN) +
CONNAME('192.168.1.150(1414)') +
QMNAME('MQSERVER') +
REPLACE
+++ |
|
Back to top |
|
 |
Gaya3 |
Posted: Thu Feb 15, 2007 3:43 am Post subject: |
|
|
 Jedi
Joined: 12 Sep 2006 Posts: 2493 Location: Boston, US
|
Hi
Naming conventions, Design tactics, re-usability, readable and meaningfull things have to be supplied
Hope you got what i am trying to say.
Thanks and Regards
Gayathri _________________ Regards
Gayathri
-----------------------------------------------
Do Something Before you Die |
|
Back to top |
|
 |
jefflowrey |
Posted: Thu Feb 15, 2007 3:43 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
All MQ channels come in pairs. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
sebastia |
Posted: Thu Feb 15, 2007 3:44 am Post subject: |
|
|
 Grand Master
Joined: 07 Oct 2004 Posts: 1003
|
What do they have THE SAME NAME ??????
No special purpose ? |
|
Back to top |
|
 |
jefflowrey |
Posted: Thu Feb 15, 2007 3:46 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
Why do Sender and Receiver Channels have the same name? _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
sebastia |
Posted: Thu Feb 15, 2007 3:48 am Post subject: |
|
|
 Grand Master
Joined: 07 Oct 2004 Posts: 1003
|
Jeff : as far as I know, IBM's recomendation to name channels is
( if you are at QM "QMA", and want to communicate qith "QMB" )
*) sender channel : QMA.TO.QMB
b) receiver channel : QMB.TO.QMA
They never have the same name ! |
|
Back to top |
|
 |
exerk |
Posted: Thu Feb 15, 2007 3:51 am Post subject: |
|
|
 Jedi Council
Joined: 02 Nov 2006 Posts: 6339
|
sebastia wrote: |
Jeff : as far as I know, IBM's recomendation to name channels is
( if you are at QM "QMA", and want to communicate qith "QMB" )
*) sender channel : QMA.TO.QMB
b) receiver channel : QMB.TO.QMA
They never have the same name ! |
I think you may have misinterpreted...SDR/RCVR channel pairs always have the same name. _________________ 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 |
|
 |
sebastia |
Posted: Thu Feb 15, 2007 3:59 am Post subject: |
|
|
 Grand Master
Joined: 07 Oct 2004 Posts: 1003
|
mr EXERC -
the same channel has the same name on both ends of the channel,
so at machine "MA" and qm "QMA" it is "QMA.TO.QMB" (sender)
and at machine "MB" and qm "QMB" it is "QMA.TO.QMB" (receiver)
BUT when I started this thread, I said I find
ON THE SAME MACHINE
2 channels with the same name ...
DEFINE CHANNEL ('TOSERVER') CHLTYPE(SVRCONN) +
MCAUSER('Administrator') +
REPLACE
DEFINE CHANNEL ('TOSERVER') CHLTYPE(CLNTCONN) +
CONNAME('192.168.1.150(1414)') +
QMNAME('MQSERVER') +
REPLACE
Gues now it is more clear !!! |
|
Back to top |
|
 |
exerk |
Posted: Thu Feb 15, 2007 4:13 am Post subject: |
|
|
 Jedi Council
Joined: 02 Nov 2006 Posts: 6339
|
The CLNTCONN is published to a channel table file and is effectively one end of a pair of channels, the SVRCONN being the other part of the pair.
jefflowrey explained this very clearly in a recent thread, I suggest you search for it as he makes a clearer explanation than me. _________________ 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 |
|
 |
HubertKleinmanns |
Posted: Thu Feb 15, 2007 4:17 am Post subject: |
|
|
 Shaman
Joined: 24 Feb 2004 Posts: 732 Location: Germany
|
sebastia wrote: |
mr EXERC -
the same channel has the same name on both ends of the channel,
so at machine "MA" and qm "QMA" it is "QMA.TO.QMB" (sender)
and at machine "MB" and qm "QMB" it is "QMA.TO.QMB" (receiver)
BUT when I started this thread, I said I find
ON THE SAME MACHINE
2 channels with the same name ...
DEFINE CHANNEL ('TOSERVER') CHLTYPE(SVRCONN) +
MCAUSER('Administrator') +
REPLACE
DEFINE CHANNEL ('TOSERVER') CHLTYPE(CLNTCONN) +
CONNAME('192.168.1.150(1414)') +
QMNAME('MQSERVER') +
REPLACE
Gues now it is more clear !!! |
sebastia,
you do not find the 2 channels with the same name, because the CLNTCONN is only defined in the client channel table. This file has to be copied to the MQ client system and then connects to the SVRCONN channel table.
(Delete or rename the file AMQCLCHL.TAB from the path /var/mqm/qmgrs/<your_qmgr>/@ipcc, and you should not see the CLNTCONN any longer.) _________________ Regards
Hubert |
|
Back to top |
|
 |
sebastia |
Posted: Thu Feb 15, 2007 4:30 am Post subject: |
|
|
 Grand Master
Joined: 07 Oct 2004 Posts: 1003
|
Thanks, Hubert et al - I think I start to understand.
Will investigate a bit more
and come back with more news
( or not )
Thanks a lot everybody. S. |
|
Back to top |
|
 |
sebastia |
Posted: Thu Feb 15, 2007 7:24 am Post subject: |
|
|
 Grand Master
Joined: 07 Oct 2004 Posts: 1003
|
Well - I am back.
I had some advice from another (source of) GURU,
and what it says is
( and I want you to confirm it )
If MQ Server has only this sentence :
"DEFINE CHANNEL ('TOSERVER') CHLTYPE(SVRCONN) + "
then ANY MQ Client can connect to the MQ Server
using the SVRCONN channel.
But, if MQ Server also has this sentence
"DEFINE CHANNEL ('TOSERVER') CHLTYPE(CLNTCONN) +
CONNAME('192.168.1.150(1414)') "
... then ONLY the machine with the IP=192.168.1.50
will be able to connect to the MQ Server
using the SVRCONN channel.
>>> Is this sentence correct ?
Waiting for your comment ... Sebastian. |
|
Back to top |
|
 |
exerk |
Posted: Thu Feb 15, 2007 7:31 am Post subject: |
|
|
 Jedi Council
Joined: 02 Nov 2006 Posts: 6339
|
Quote: |
CONNAME('192.168.1.150(1414)') |
What do you think might be defined in the CONNAME of a client connection channel definition?
I suggest you ask your guru to clarify what he told you, or read the Intercommunication Guide. _________________ 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 |
|
 |
sebastia |
Posted: Thu Feb 15, 2007 7:39 am Post subject: |
|
|
 Grand Master
Joined: 07 Oct 2004 Posts: 1003
|
mr exerc - in the coname we write a hostname or IP and a port.
The question still is : does this definition in the MQ Server
prevent machines with other IPs to connect using the SVRCONN ?
If so, I have discovered an interesting feature ...
If not, I am sorry about all this mess ... |
|
Back to top |
|
 |
jefflowrey |
Posted: Thu Feb 15, 2007 7:43 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
No, that's not true. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
|