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 » Archives - All » MQJE011: Socket connection attempt refused

This forum is locked: you cannot post, reply to, or edit topics.  This topic is locked: you cannot edit posts or make replies.
 MQJE011: Socket connection attempt refused « View previous topic :: View next topic » 
Author Message
RogerLacroix
PostPosted: Tue Dec 28, 2004 8:09 pm    Post subject: MQJE011: Socket connection attempt refused Reply with quote

Jedi Knight

Joined: 15 May 2001
Posts: 3253
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):
Quote:
MQJE001: An MQException occurred: Completion Code 2, Reason 2059
MQJE011: Socket connection attempt refused

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

Regards,
Roger Lacroix
Capitalware Inc.
_________________
Capitalware: Transforming tomorrow into today.
Connected to MQ!
Twitter
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.  This topic is locked: you cannot edit posts or make replies. Page 1 of 1

MQSeries.net Forum Index » Archives - All » MQJE011: Socket connection attempt refused
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.