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 Installation/Configuration Support » SVRCONN and CLNTCONN with the same name

Post new topic  Reply to topic Goto page 1, 2  Next
 SVRCONN and CLNTCONN with the same name « View previous topic :: View next topic » 
Author Message
sebastia
PostPosted: Thu Feb 15, 2007 3:38 am    Post subject: SVRCONN and CLNTCONN with the same name Reply with quote

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
View user's profile Send private message Visit poster's website
Gaya3
PostPosted: Thu Feb 15, 2007 3:43 am    Post subject: Reply with quote

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
View user's profile Send private message
jefflowrey
PostPosted: Thu Feb 15, 2007 3:43 am    Post subject: Reply with quote

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
View user's profile Send private message
sebastia
PostPosted: Thu Feb 15, 2007 3:44 am    Post subject: Reply with quote

Grand Master

Joined: 07 Oct 2004
Posts: 1003

What do they have THE SAME NAME ??????

No special purpose ?
Back to top
View user's profile Send private message Visit poster's website
jefflowrey
PostPosted: Thu Feb 15, 2007 3:46 am    Post subject: Reply with quote

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
View user's profile Send private message
sebastia
PostPosted: Thu Feb 15, 2007 3:48 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
exerk
PostPosted: Thu Feb 15, 2007 3:51 am    Post subject: Reply with quote

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
View user's profile Send private message
sebastia
PostPosted: Thu Feb 15, 2007 3:59 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
exerk
PostPosted: Thu Feb 15, 2007 4:13 am    Post subject: Reply with quote

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
View user's profile Send private message
HubertKleinmanns
PostPosted: Thu Feb 15, 2007 4:17 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
sebastia
PostPosted: Thu Feb 15, 2007 4:30 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
sebastia
PostPosted: Thu Feb 15, 2007 7:24 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
exerk
PostPosted: Thu Feb 15, 2007 7:31 am    Post subject: Reply with quote

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
View user's profile Send private message
sebastia
PostPosted: Thu Feb 15, 2007 7:39 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
jefflowrey
PostPosted: Thu Feb 15, 2007 7:43 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Goto page 1, 2  Next Page 1 of 2

MQSeries.net Forum Index » IBM MQ Installation/Configuration Support » SVRCONN and CLNTCONN with the same name
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.