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 » CLNTCONN vs SVRCONN

Post new topic  Reply to topic Goto page 1, 2  Next
 CLNTCONN vs SVRCONN « View previous topic :: View next topic » 
Author Message
imsiva_k
PostPosted: Tue Jun 22, 2010 7:43 am    Post subject: CLNTCONN vs SVRCONN Reply with quote

Apprentice

Joined: 02 Dec 2008
Posts: 25

Hi ,

I am new to MQ. Could anybody explain the difference while defining a channel with chltype CLNTCONN and with SVRCONN. Thanks in advance.
Back to top
View user's profile Send private message Send e-mail
Vitor
PostPosted: Tue Jun 22, 2010 7:55 am    Post subject: Re: CLNTCONN vs SVRCONN Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

imsiva_k wrote:
Could anybody explain the difference while defining a channel with chltype CLNTCONN and with SVRCONN. Thanks in advance.


It's the difference quite abley laid out in both the Clients manual & the Intercomunication manual.


_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
mqjeff
PostPosted: Tue Jun 22, 2010 7:59 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

And similar to the difference between the two poles of a magnet.
Back to top
View user's profile Send private message
Gaya3
PostPosted: Tue Jun 22, 2010 8:02 am    Post subject: Reply with quote

Jedi

Joined: 12 Sep 2006
Posts: 2493
Location: Boston, US

let me also add....

Please search this forum
_________________
Regards
Gayathri
-----------------------------------------------
Do Something Before you Die
Back to top
View user's profile Send private message
Vitor
PostPosted: Tue Jun 22, 2010 8:07 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

mqjeff wrote:
And similar to the difference between the two poles of a magnet.


I like that!
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
shashivarungupta
PostPosted: Tue Jun 22, 2010 8:07 am    Post subject: Reply with quote

Grand Master

Joined: 24 Feb 2009
Posts: 1343
Location: Floating in space on a round rock.

Welcome Buddy !

Look at the link and search out what you want.
http://publib.boulder.ibm.com/infocenter/wmqv7/v7r0/index.jsp


_________________
*Life will beat you down, you need to decide to fight back or leave it.
Back to top
View user's profile Send private message Send e-mail
shashivarungupta
PostPosted: Tue Jun 22, 2010 8:11 am    Post subject: Reply with quote

Grand Master

Joined: 24 Feb 2009
Posts: 1343
Location: Floating in space on a round rock.

Vitor wrote:
mqjeff wrote:
And similar to the difference between the two poles of a magnet.


I like that!


Innovative quotes and comments are coming... !
Similar to the diff. between the two poles of the earth.
_________________
*Life will beat you down, you need to decide to fight back or leave it.
Back to top
View user's profile Send private message Send e-mail
rconn2
PostPosted: Tue Aug 09, 2011 5:33 am    Post subject: Reply with quote

Voyager

Joined: 09 Aug 2007
Posts: 79
Location: MD, USA

A search on SVRCONN CLNTCONN (all terms) yields no results. I also wanted a quick explanation of the OP's question (having come across it through google). For some reason I can't think of the reason and I'm experienced with MQ. It would be more efficient and of course actually helpful to provide a quick answer. What do you all do when someone asks for directions? Tell them to go read a map?

You guys have been incredibly helpful to me in the past on more complex MQ stuff... so don't take offense... this is gentle ribbing... but I do wish people would just help or not reply to posts like this.
Back to top
View user's profile Send private message
mqjeff
PostPosted: Tue Aug 09, 2011 5:57 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

So the reason why different answers come out is because nobody here is getting paid to provide good answers.

We're all volunteers who do this because we feel like it. In my particular case, the "quality" and nature of any given answer depends entirely on my mood, how much effort I perceive was put into the query, how difficult the answer actually is, and a large number of other completely subjective criteria.

And I submit that there's a difference between someone asking for specific directions from point A to point B, and that same person walking up to you and saying "I'm lost." Particularly if the second person says this when you are standing in front of a very large map with a big pointer that says "you are here" on it.
Back to top
View user's profile Send private message
rconn2
PostPosted: Tue Aug 09, 2011 6:10 am    Post subject: Reply with quote

Voyager

Joined: 09 Aug 2007
Posts: 79
Location: MD, USA

mqjeff - you're a great resource and tremendously helpful.

But... in all honesty... I just searched the IBM link in this thread, and this forum, and more googling... and I didn't find any succinct explanation for the difference and uses of CLNTCONN and SVRCONN. IBM's help is, as has been my experience, a morass of can't see the forest for the trees detail.

I never use CLNTCONN. I guess in the past I learned that I needed to use SVRCONN and that was that... and I wondered why reading the OP. Sometimes we just ask for the time of day and don't want to make a big deal out of it.
Back to top
View user's profile Send private message
mqjeff
PostPosted: Tue Aug 09, 2011 6:22 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

The CLNTCONN is the other half of a SVRCONN. So it's like a Receiver channel is the other half of a Sender channel.

http://publib.boulder.ibm.com/infocenter/wmqv7/v7r0/index.jsp?topic=/com.ibm.mq.csqzaf.doc/cs11950_.htm

You *always* use *both* a SVRCONN and a CLNTCONN. You don't *always* need to explicitly define the CLNTCONN half.
Back to top
View user's profile Send private message
Vitor
PostPosted: Tue Aug 09, 2011 6:28 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

rconn2 wrote:
But... in all honesty... I just searched the IBM link in this thread, and this forum, and more googling... and I didn't find any succinct explanation for the difference and uses of CLNTCONN and SVRCONN. IBM's help is, as has been my experience, a morass of can't see the forest for the trees detail.


I discoved this link in my search results. I accept it doesn't explicitly say "this is the difference between a SVRCONN & a CLNTCONN", but it does drop you into the Clients manual where the connection types are discussed, along with examples of how to set them up.

rconn2 wrote:
I never use CLNTCONN. I guess in the past I learned that I needed to use SVRCONN and that was that...


As explained in the manual, there are specific reasons you're want to use a CLNTCONN, and reasons you don't need to. This link is about as specific as it gets.

One of the problems is that, if you look at the short list of regular posters, people keep asking us the time of day and have done for years. There comes a point where you stop looking at your watch, and start pointing at the clock on the town hall.

And too many people have then said, "yes, but what do the 2 sticks mean? And why is one longer than the other? Please guide me".
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
bruce2359
PostPosted: Tue Aug 09, 2011 11:41 am    Post subject: Reply with quote

Poobah

Joined: 05 Jan 2008
Posts: 9472
Location: US: west coast, almost. Otherwise, enroute.

rconn2 wrote:

But... in all honesty... I just searched ... and I didn't find any succinct explanation for the difference and uses of CLNTCONN and SVRCONN.

I accept that you didn't find a succinct explanation of the differences. Searching is an art. Often, you will not find a succinct answer to what appears to be a fundamental question.

In this instance, the WMQ Intercommunications manual and WMQ Clients manual (or InfoCenter equivalent) succinctly explain the purpose and function of each channel type. Each manual also suggests other documentation where you may find related information.

Here is a suggestion: do the research yourself, and post the results here. This will serve you in two important ways: 1) you will gain valuable experience in doing basic research; and 2) you will gain valuable understanding of these two channel types.
_________________
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
View user's profile Send private message
mvic
PostPosted: Tue Aug 09, 2011 12:08 pm    Post subject: Reply with quote

Jedi

Joined: 09 Mar 2004
Posts: 2080

rconn2 wrote:
I never use CLNTCONN. I guess in the past I learned that I needed to use SVRCONN and that was that... and I wondered why reading the OP. Sometimes we just ask for the time of day and don't want to make a big deal out of it.

When you start a client program, you use (whether you realise or not) a CLNTCONN channel definition in your client.

The CLNTCONN channel definition in your client describes to the MQI library code how to reach a SVRCONN somewhere.

You would also need a SVRCONN channel definition on your server, having the same name as the CLNTCONN on your client. This SVRCONN allows the queue manager to create the server side of the client-server connection.

For maximum control over your CLNTCONN channel defintion, you generate your own MQCD in your client program, and pass this via the MQCNO you provide to your MQCONNX call.

Hope this helps.
Back to top
View user's profile Send private message
exerk
PostPosted: Tue Aug 09, 2011 1:01 pm    Post subject: Reply with quote

Jedi Council

Joined: 02 Nov 2006
Posts: 6339

Vitor wrote:
...And too many people have then said, "yes, but what do the 2 sticks mean? And why is one longer than the other? Please guide me"...

Now I like that!
_________________
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 Goto page 1, 2  Next Page 1 of 2

MQSeries.net Forum Index » General IBM MQ Support » CLNTCONN vs SVRCONN
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.