Author |
Message
|
sebastia |
Posted: Tue Jun 08, 2010 7:23 am Post subject: mq v7 client needs to Reconnect - CHANNELS stanza sample |
|
|
 Grand Master
Joined: 07 Oct 2004 Posts: 1003
|
Hello everybody.
We want to test if MQ Client V7 reconnect works as transparent as they say.
As we dont want to code MQCONNX options,
the only other way I found to indicate
"this client wants to be auto-magically reconnected"
is to code
"DefRecon=QMGR"
in the channels stanza of the mqclient.ini configuration file.
So far, so good.
I find where file mqclient.ini is located, but unfortunatelly it is quite empty.
I am talking about Windows platform right now ...
WHERE CAN I GET A SAMPLE OF THE CHANNELS STANZA ?
I have searched all V7 documentation, without luck.
Thanks for amy help. Sebastian. |
|
Back to top |
|
 |
gbaddeley |
Posted: Tue Jun 08, 2010 7:21 pm Post subject: |
|
|
 Jedi Knight
Joined: 25 Mar 2003 Posts: 2538 Location: Melbourne, Australia
|
IBM recently published a Whitepaper that may help. It presents detailed scenarios for exploiting the automatic reconnect functions of MQ clients and queue managers introduced in version 7.0.1.
A PDF is available at http://www.ibm.com/support/docview.wss?uid=swg27017882 _________________ Glenn |
|
Back to top |
|
 |
sebastia |
Posted: Tue Jun 08, 2010 11:31 pm Post subject: |
|
|
 Grand Master
Joined: 07 Oct 2004 Posts: 1003
|
... mr gBadDeley .. Thank you so much !
That document is more that I dreamed of ... and is the solution to all my requests ... jejeje
To try to improve my search domain, one question more ... WHERE ARE THAT KIND OF WHITE PAPERS PUBLISHED ?
Sebastian.
PD.- Just to have it handy, here is the part I was specifically asking for ...
+ + +
Add the following stanza (which will act as having the MQSERVER environment variable being set) and allowing the reconnectable clients to reconnect.
CHANNELS:
DefRecon=YES
ServerConnectionParms=SYSTEM.DEF.SVRCONN/TCP/aemtux1.z.ibm.com(1421)
Note: Do NOT use single quotes around the connection name! The MQSERVER variable in Unix requires them, but they do NOT work inside the client configuration file.
ServerConnectionParms=SYSTEM.DEF.SVRCONN/TCP/'aemtux1.z.ibm.com(1421)'
The above does NOT work and you will get the return code 2538
- - - |
|
Back to top |
|
 |
exerk |
Posted: Tue Jun 08, 2010 11:39 pm Post subject: |
|
|
 Jedi Council
Joined: 02 Nov 2006 Posts: 6339
|
time...
CHANNELS:
ChannelDefinitionDirectory=value
ChannelDefinitionFile=value
DefRecon=value
MQReconnectTimeout=value
XAReconnectTimeout=value
By default the client application will look for the mqclient.ini file in the path from which it is executing, so specifically tailored .ini files can be provided for each and every client. _________________ 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: Tue Jun 08, 2010 11:46 pm Post subject: |
|
|
 Grand Master
Joined: 07 Oct 2004 Posts: 1003
|
Thanks, mr EXERK ... Can I improve my question ?
WHERE DO YOU GET THOSE LINES FROM ?
I mean, I know AIX machines have had INI files since long ago,
and STANZAS were always there.
Just didn't know Windows machines were also using them,
and Windows documentation has no sample at all !!!
Sebastian. |
|
Back to top |
|
 |
exerk |
Posted: Wed Jun 09, 2010 12:09 am Post subject: |
|
|
 Jedi Council
Joined: 02 Nov 2006 Posts: 6339
|
sebastia wrote: |
...WHERE DO YOU GET THOSE LINES FROM ? |
From the manual - which is not always a model of clarity
THIS gave me the syntax (it states CHANNELS in the manual) and I applied my usual methodical approach to getting it right - try something and see if it worked, and if not, keep changing things until it does work  _________________ 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 |
|
 |
|