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 IBM MQ Support » Why does my program seem to be using the MQSERVER envir var?

Post new topic  Reply to topic
 Why does my program seem to be using the MQSERVER envir var? « View previous topic :: View next topic » 
Author Message
JTski
PostPosted: Thu Apr 22, 2004 5:32 am    Post subject: Why does my program seem to be using the MQSERVER envir var? Reply with quote

Novice

Joined: 04 Feb 2004
Posts: 14

Hi all,

This past weekend the infrastructure group rebuilt my Windows 2000 server and my VB program that worked just fine before the rebuild now does not work.

Before the weekend here were the basics of the server:
Windows 2000 OS
W2K SP2
MQClient 5.2 CSD 5

Now:
Windows 2000 OS
W2K SP3
MQClient 5.2.1 CSD 5 (IBM.com does not offer 5.2 CSD as a download anymore)

I have a program that reads its connect info from a table and dynamically builds the MQCONNXAny info (channel, server, manager name). The MQSERVER variable is setup on the server to point to an internal MQ Server. My program dynamically builds the connect info because I do NOT want to use the envir variables. This is all worked just fine before the server rebuild. What I have done is put some debug code in my VB comp to write to the event log the three variables right before it calls MQCONNXAny, they are correct (channel, server, manager name). What is happening is my program keeps failing with CompCode 2, Reason 2058. I know a 2058 is manager name unknown. When we enable NetMon on that server it seems as if the connection call is coming out of the server to the server defined in the MQSERVER variable but with the queue manager name I dynamically retrieved. I will let this service run, it wakes up every 30 seconds for new messages to send. I have it where it will fail 5 times in a row, but then work, then fail another 3 times, then work.

Any ideas?
Back to top
View user's profile Send private message
fazz
PostPosted: Thu Apr 22, 2004 7:49 am    Post subject: Reply with quote

Centurion

Joined: 20 Feb 2004
Posts: 144
Location: England

Try adding a new Environment variable called 'GMO_MQ_LIB' with a value of 'MQIC32.DLL'

I vaguely remeber having this problem before, and I think its something to do with which DLL your app is using. There is a server dll and a client one.

Setting this variable forces your app to use the dll you specify here.
Back to top
View user's profile Send private message
fazz
PostPosted: Thu Apr 22, 2004 7:55 am    Post subject: Reply with quote

Centurion

Joined: 20 Feb 2004
Posts: 144
Location: England

I think you can also pass in a parameter to your app that specifys what dll to use.
Back to top
View user's profile Send private message
JasonE
PostPosted: Tue Apr 27, 2004 3:54 am    Post subject: Reply with quote

Grand Master

Joined: 03 Nov 2003
Posts: 1220
Location: Hursley

Are you still having this problem? Is the app a pure VB app?

A MQCD structure supplied should override the env var MQSERVER, so you are either not providing it or there is another problem
Back to top
View user's profile Send private message
JTski
PostPosted: Tue Apr 27, 2004 3:57 am    Post subject: Reply with quote

Novice

Joined: 04 Feb 2004
Posts: 14

Thanks fazz and JasonE for your input. After finally convincing the infrastructure group to let me get on the box and poke around I found that they had installed client 5.2 CSD 2 which was wrong. I needed CSD 5 installed. After that was done all was good. Obviously a bug in that IBM fixed between 2 and 5. Thanks again everyone.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General IBM MQ Support » Why does my program seem to be using the MQSERVER envir var?
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.