Author |
Message
|
marksinnott |
Posted: Thu Apr 14, 2005 9:43 am Post subject: HELP VB API Support NT vs WIN 2000 |
|
|
Novice
Joined: 06 Oct 2003 Posts: 21
|
Hi I have a vb6 program that connects to a remote mq manager on a different server. The way the VB program gets the manager etc is from the environmental variable MQSERVER=CLIENT.qmgername/tcp/servername(port) which i have set in NT.
This all work perfectly running on NT.
When I migrate my VB prog over to windows2000 and set the above environmental variable as above I get a 2059.
It looks like its not picking up the environmental variable.
Any ideas / help would be much appreciated
Mark |
|
Back to top |
|
 |
PeterPotkay |
Posted: Thu Apr 14, 2005 10:07 am Post subject: |
|
|
 Poobah
Joined: 15 May 2001 Posts: 7722
|
Did you bounce the machine after setting the variable?
If yes, what do you get when you type amqscnxc from the command line? _________________ Peter Potkay
Keep Calm and MQ On |
|
Back to top |
|
 |
marksinnott |
Posted: Thu Apr 14, 2005 10:19 am Post subject: |
|
|
Novice
Joined: 06 Oct 2003 Posts: 21
|
Hi yes i booted the machine
Sample AMQSCNXC start
Connecting to the default queue manager
with no client connection information specified.
Connection established to queue manager MUAXBR03
Sample AMQSCNXC end
When I run the vb program i get
ruin time error 3200
MQAX200.dllMqsessionAccessqueuemanager completion code 2 reasoncode 2059reasonname MQRC_Q_MGR_NOT_AVAILABLE
We have set the mqaerever to MQSERVER=CLIENT.MUAXBRO3/TCP/Servername(portnumber)
Any help will be appreciated
Tried the excel sample and also get the same error |
|
Back to top |
|
 |
bower5932 |
Posted: Thu Apr 14, 2005 10:20 am Post subject: |
|
|
 Jedi Knight
Joined: 27 Aug 2001 Posts: 3023 Location: Dallas, TX, USA
|
Since the excel sample is also failing, I'd suggest that you try this with the amqsputC sample and the environment variable. Also, is your listener running? |
|
Back to top |
|
 |
marksinnott |
Posted: Thu Apr 14, 2005 10:26 am Post subject: |
|
|
Novice
Joined: 06 Oct 2003 Posts: 21
|
Set MQSess = New MQSession
Set QMgr = MQSess.AccessQueueManager("")
The above is the start of the vb prog and i get the error on the 2nd line
If i go over to the NT machine it works fine |
|
Back to top |
|
 |
marksinnott |
Posted: Thu Apr 14, 2005 10:28 am Post subject: |
|
|
Novice
Joined: 06 Oct 2003 Posts: 21
|
Sample AMQSPUT0 start
target queue is NUBR.BPS.ISIS
Sample AMQSPUT0 end
using the sample u mention
Thanks |
|
Back to top |
|
 |
PeterPotkay |
Posted: Thu Apr 14, 2005 11:02 am Post subject: |
|
|
 Poobah
Joined: 15 May 2001 Posts: 7722
|
marksinnott wrote: |
Sample AMQSCNXC start
Connecting to the default queue manager
with no client connection information specified.
Connection established to queue manager MUAXBR03
Sample AMQSCNXC end
|
This proves the MQSERVER variable is recognized. Even though you did not specify any paramters to tell it to go to MUAXBR03, it made the connection. The only way it could have done this is if MQSERVER was recognized. (Or of you had a channel table set up, the AMQCHLLIB and AMQCHLTAB variables set, and no MQSERVER). _________________ Peter Potkay
Keep Calm and MQ On |
|
Back to top |
|
 |
marksinnott |
Posted: Wed Apr 20, 2005 3:12 am Post subject: MQSERVER |
|
|
Novice
Joined: 06 Oct 2003 Posts: 21
|
I have just set the environment variable MQSERVER to tell vb where to connect to. It work on NT client but not windows 2000 client. |
|
Back to top |
|
 |
fjb_saper |
Posted: Wed Apr 20, 2005 12:23 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
marksinnott wrote: |
Hi yes i booted the machine
Sample AMQSCNXC start
Connecting to the default queue manager
with no client connection information specified.
Connection established to queue manager MUAXBR03
Sample AMQSCNXC end
When I run the vb program i get
ruin time error 3200
MQAX200.dllMqsessionAccessqueuemanager completion code 2 reasoncode 2059reasonname MQRC_Q_MGR_NOT_AVAILABLE
We have set the mqaerever to MQSERVER=CLIENT.MUAXBRO3/TCP/Servername(portnumber)
Any help will be appreciated
Tried the excel sample and also get the same error |
Don't know if it's a typo but you better check your names... looks to me like there is confusion between a 0 (zero) and O (Oscar). |
|
Back to top |
|
 |
|