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 Discussion » CLNTCONN channel question

Post new topic  Reply to topic Goto page Previous  1, 2
 CLNTCONN channel question « View previous topic :: View next topic » 
Author Message
mqrules
PostPosted: Thu Sep 21, 2006 4:39 pm    Post subject: Reply with quote

Centurion

Joined: 01 Jun 2005
Posts: 100
Location: US

Wayne,

Quote:
No, thats not what I think mvic is suggesting ...his idea was to dynamically set those variables by using a Windows call SetEnvironmentVariable() from WITHIN the same program that would then make the MQCONN... I don't think THAT will work...but, of course, you should try it and let us know....


mvic does suggest the use of a .bat file to "set MQCHLLIB and MQCHLTAB" within a .bat file and start the app like (not the SetEnvironmentVariable):

@echo off
setlocal
set MQCHLLIB=whatever
set MQCHLTAB=channeltable1
c:\myprogramdir\myprogram.exe

Regards,

MR.
Back to top
View user's profile Send private message
kevinf2349
PostPosted: Fri Sep 22, 2006 4:38 am    Post subject: Reply with quote

Grand Master

Joined: 28 Feb 2003
Posts: 1311
Location: USA

I don't think that will work. In my experience when you set the MQServer (or change) the MQSERVER value it required a restart of Windows to take effect.

Of course that was 5.3 and a few CSD's back
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Fri Sep 22, 2006 5:13 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

Using a batch file to set MQSERVER or etc will work.

Doing some basic testing, you can move/rename AMQCLCHL.TAB, issue a bunch of "def chl(...) chltype(CLNTCONN) conname(...)..." and it will create a new AMQCLCHL.TAB file. Make sure to put the old AMQCLCHL.TAB back...

At least on v6. I haven't tried on v5. I don't have any firm reason to doubt it will work, but I don't have any firm reason to suspect it will work either. Except maybe a very vague memory of trying it about 5 years ago...

Obviously, don't try this on production.

And the simple fact is that there's nothing that ties a particular AMQCLCHL.TAB file to a particular queue manager. So there's no reason not to create a temporary queue manager with no existing client conns, build the AMQCLCHL.TAB file you need, and then dump the queue manager. It's pretty much recommended that you do that in the manauls, too.

http://publib.boulder.ibm.com/infocenter/wmqv6/v6r0/index.jsp?topic=/com.ibm.mq.csqzaf.doc/runmul.htm
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
bbburson
PostPosted: Fri Sep 22, 2006 5:33 am    Post subject: Reply with quote

Partisan

Joined: 06 Jan 2004
Posts: 378
Location: Nowhere near a queue manager

jefflowrey wrote:
Doing some basic testing, you can move/rename AMQCLCHL.TAB, issue a bunch of "def chl(...) chltype(CLNTCONN) conname(...)..." and it will create a new AMQCLCHL.TAB file. Make sure to put the old AMQCLCHL.TAB back...

At least on v6. I haven't tried on v5. ...

V5 complains if it can't find /var/mqm/qmgrs/.../@ipcc/AMQCLCHL.TAB. I have had this same situation for several years (clients needing different channel defs for the same queue manager). Maintaining separate TAB files for each appl is the way to go. Just re-define MQCHLTAB as needed to add/update the various tables.

If I ever lose my empty AMQCLCHL.TAB file, I just crtmqm a new queue manager, grab the file that gets generated and then delete the queue manager.
Back to top
View user's profile Send private message
kevinf2349
PostPosted: Fri Sep 22, 2006 6:10 am    Post subject: Reply with quote

Grand Master

Joined: 28 Feb 2003
Posts: 1311
Location: USA

Interesting.....I will have to play again
Back to top
View user's profile Send private message
mqrules
PostPosted: Fri Sep 29, 2006 5:56 am    Post subject: Reply with quote

Centurion

Joined: 01 Jun 2005
Posts: 100
Location: US

Thank you all for your responses.

mr
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Goto page Previous  1, 2 Page 2 of 2

MQSeries.net Forum Index » General Discussion » CLNTCONN channel question
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.