Author |
Message
|
imsiva_k |
Posted: Tue Jun 22, 2010 7:43 am Post subject: CLNTCONN vs SVRCONN |
|
|
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 |
|
 |
Vitor |
Posted: Tue Jun 22, 2010 7:55 am Post subject: Re: CLNTCONN vs SVRCONN |
|
|
 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 |
|
 |
mqjeff |
Posted: Tue Jun 22, 2010 7:59 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
And similar to the difference between the two poles of a magnet. |
|
Back to top |
|
 |
Gaya3 |
Posted: Tue Jun 22, 2010 8:02 am Post subject: |
|
|
 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 |
|
 |
Vitor |
Posted: Tue Jun 22, 2010 8:07 am Post subject: |
|
|
 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 |
|
 |
shashivarungupta |
Posted: Tue Jun 22, 2010 8:07 am Post subject: |
|
|
 Grand Master
Joined: 24 Feb 2009 Posts: 1343 Location: Floating in space on a round rock.
|
|
Back to top |
|
 |
shashivarungupta |
Posted: Tue Jun 22, 2010 8:11 am Post subject: |
|
|
 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 |
|
 |
rconn2 |
Posted: Tue Aug 09, 2011 5:33 am Post subject: |
|
|
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 |
|
 |
mqjeff |
Posted: Tue Aug 09, 2011 5:57 am Post subject: |
|
|
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 |
|
 |
rconn2 |
Posted: Tue Aug 09, 2011 6:10 am Post subject: |
|
|
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 |
|
 |
mqjeff |
Posted: Tue Aug 09, 2011 6:22 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
|
Back to top |
|
 |
Vitor |
Posted: Tue Aug 09, 2011 6:28 am Post subject: |
|
|
 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 |
|
 |
bruce2359 |
Posted: Tue Aug 09, 2011 11:41 am Post subject: |
|
|
 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 |
|
 |
mvic |
Posted: Tue Aug 09, 2011 12:08 pm Post subject: |
|
|
 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 |
|
 |
exerk |
Posted: Tue Aug 09, 2011 1:01 pm Post subject: |
|
|
 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 |
|
 |
|