Posted: Sun Feb 17, 2013 4:21 pm Post subject: Application question of how to override windows system
Apprentice
Joined: 17 Jan 2008 Posts: 34
enviromental variables?
We did a test last night and first off I am not an application programmer. I believe the appl is a .net and the following lines is the code added to over ride the system variable and point to CRXXXXT qmgr, connection MQXXXX on a backup server, both original and backup have the same qmanager name and connection name. We had network folks moving the DNS name to the backup on a different host. We pinged MQXXXX and the backup server name and MQXXXX and the backup server resolved to the same ip address. But the appl was still sending msgs to the orignial qmanager queues and not the backup server queues. We even opened up a c prompt window on a batch server that was sending msgs to the original qmanager, set mqserver to the backup server and did amqsputc and viewed the backup queues thru appwatch and the msgs was there, did an amqsgetc and pulled the msg off the backup server to the batch window server.
Appl folks recycled their appl and msgs were still being sent to the original qmanager and not the backup qmanager. Any ideals why? Or what to check?
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
Sounds to me like whereever the app is running, it's in a command shell where those environment variables are not set. Unlike the one you opened up, where they seem to be. _________________ Honesty is the best policy.
Insanity is the best defence.
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