Posted: Tue Dec 28, 2004 8:09 pm Post subject: MQJE011: Socket connection attempt refused
Jedi Knight
Joined: 15 May 2001 Posts: 3264 Location: London, ON Canada
Attention MQ Batch Toolkit users;
The following weird situation on Windows was discovered: If MQ Batch Toolkit is launched from another program (i.e. Web server) that was setup with SRVANY as a Windows service then you may get the following error messages (even if everything is setup correctly):
For some strange reason, when a program is installed as a service with SRVANY, the SystemRoot environment variable is NOT set. If the Windows service invokes a console application and it tries to use sockets then it will not work because the Windows TCP/IP stack needs the SystemRoot environment variable to be set.
So, either programatically add SystemRoot in your program (before calling MQ Batch Toolkit) or add an environment variable to the batch file.
i.e. SET SystemRoot=C:\WINNT
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