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 » V7 MQ Client Configuration File

Post new topic  Reply to topic
 V7 MQ Client Configuration File « View previous topic :: View next topic » 
Author Message
ivanachukapawn
PostPosted: Sun Mar 07, 2010 10:57 am    Post subject: V7 MQ Client Configuration File Reply with quote

Knight

Joined: 27 Oct 2003
Posts: 561

If I do not modify the MQ Client Configuration File on the MQ Client machine will client applications continue to function OK using the customary MQSERVER, MQCHLLIB, MQCHLTAB, variables etc. ?
Back to top
View user's profile Send private message
bruce2359
PostPosted: Sun Mar 07, 2010 11:03 am    Post subject: Reply with quote

Poobah

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

Modify it to do what?

Have you tried it? What were the results?
_________________
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
Vitor
PostPosted: Sun Mar 07, 2010 12:08 pm    Post subject: Reply with quote

Grand High Poobah

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

ivanachukapawn wrote:
If I do not modify the MQ Client Configuration File on the MQ Client machine will client applications continue to function OK using the customary MQSERVER, MQCHLLIB, MQCHLTAB, variables etc. ?


Are you asking if a v6 client configuration will still work when the target queue manager is upgraded to v7?

If so, why not just say it? Or try it?

Or perhaps just elaborate on what prompts your question?
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
exerk
PostPosted: Sun Mar 07, 2010 12:39 pm    Post subject: Reply with quote

Jedi Council

Joined: 02 Nov 2006
Posts: 6339

The 'vanilla' mqclient.ini file comes with a remarked-out TCP stanza so is of no use to a client application, and the file is lower in the hierarchy than the environment variables so will be over-ridden by them.
_________________
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
ivanachukapawn
PostPosted: Sun Mar 07, 2010 3:34 pm    Post subject: Reply with quote

Knight

Joined: 27 Oct 2003
Posts: 561

I do not have the opportunity of trying this config file right now, that's why I posted the question. Since we don't really need to use this file for client connectivity I am assuming that it could be useful anyway especially if we wanted to have lists of MQSERVER variables (which would be tried in sequential order by MQ) or in case where we wanted to implement automated client reconnection. I appreciate your answer as it confirms my guess as to how this works.
Back to top
View user's profile Send private message
bruce2359
PostPosted: Sun Mar 07, 2010 3:47 pm    Post subject: Reply with quote

Poobah

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

I believe you should read the WMQ Clients manual to get the basics of client support. The MQSERVER environment variable works for one shell at a time.

You might want to read the WMQ v7 announcement to see what's new. v7 enables client-reconnection, but this has more to do with the client channel table - not the ini file, and not the MQSERVER environment variable.
_________________
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
Vitor
PostPosted: Sun Mar 07, 2010 4:11 pm    Post subject: Reply with quote

Grand High Poobah

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

ivanachukapawn wrote:
I am assuming that it could be useful anyway especially if we wanted to have lists of MQSERVER variables (which would be tried in sequential order by MQ)


How on Earth could any mechanism produce a list of environment variables? How could any mechanism convince the OS to support such a construct? Environment variables are unique by name on all platforms I'm aware of.

ivanachukapawn wrote:
I appreciate your answer as it confirms my guess as to how this works.


If you read the client manual, you won't have to guess how the connectivity works. If you have read it, and think that's how the connectivity works, read it again.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
ivanachukapawn
PostPosted: Sun Mar 07, 2010 4:50 pm    Post subject: Reply with quote

Knight

Joined: 27 Oct 2003
Posts: 561

Read the client manual again.

The ServerConnectionParms are equvalent to MQSERVER variables.

Quote:
This is equivalent to the MQSERVER environment parameter.

Start of changeSpecify ConnectionName as a comma separated list of names of machines for the stated TransportType. Typically, only one machine name is required. You can provide multiple machine names to configure multiple connections with the same properties. The connections are tried in the order they are specified in the connection list until a connection is successfully established.


Thats how.
Back to top
View user's profile Send private message
bruce2359
PostPosted: Sun Mar 07, 2010 5:01 pm    Post subject: Reply with quote

Poobah

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

Quote:
The ServerConnectionParms are equvalent to MQSERVER variables.

You have only partially understood the meaning of this statement.

A requirement of an mq client connection is the channel name, protocol, and ipaddress(port) - the variables.

You have choices as to how you provide these variables to the client connection software, namely (pick one of these):

1. MQSERVER= environment variable; OR
2. MQCHLTAB= and MQCHLLIB= environment variables; OR
3. a client channel table
_________________
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
ivanachukapawn
PostPosted: Sun Mar 07, 2010 5:09 pm    Post subject: Reply with quote

Knight

Joined: 27 Oct 2003
Posts: 561

This is getting interesting. I agree that the connection attempt needs channel name, transport, and address(port) but I also see this quote.

Quote:

ServerConnectionParms specifies the location of the WebSphere MQ server and the communication method to be used. This attribute defines only a simple channel; you cannot use it to define an SSL channel or a channel with channel exits. It is a string of the format ChannelName/TransportType/ConnectionName.


If this is true, why is not ServerConnectionParms another choice?
Back to top
View user's profile Send private message
bruce2359
PostPosted: Sun Mar 07, 2010 6:39 pm    Post subject: Reply with quote

Poobah

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

The OP was about the MQ Client Configuration File.

When you quote something from a manual (or equivalent source), please cite the reference (document number, name, or URL).

Are you referring to the .NET ServerConnectionParms implementation?

The three choices I offered are those that are native to WMQ. I suppose I could also add the Java classes and JMS equivalents to the list.
_________________
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
ivanachukapawn
PostPosted: Sun Mar 07, 2010 6:51 pm    Post subject: Reply with quote

Knight

Joined: 27 Oct 2003
Posts: 561

MQ 7.0.1 Information Center. Search for MQ Client Configuration File. Then follow the link for
Quote:

CHANNELS stanza of the client configuration file


The ServerConnectionParms are an attribute of the CHANNELS stanza of the client configuration file.

You say

Quote:
The three choices I offered are those that are native to WMQ


but it would appear that this is another choice for providing not only channel/transport/address(port) but a list of channel/transport/address(port) - it appears to be native to WMQ 7.0.1
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Sun Mar 07, 2010 10:02 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

I thought you could use a program to create the qmgr object like QueueManager(String qmgrname, Properties props) to create a qmgr object with the client connection information... This bypasses the MQEnvironment variable and allows multiple client connections from the same program.
It is well documented in the .NET and java Manuals.
http://publib.boulder.ibm.com/infocenter/wmqv6/v6r0/topic/com.ibm.mq.csqzav.doc/csqzav0567.htm

Have fun
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Installation/Configuration Support » V7 MQ Client Configuration File
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.