posted 20 years ago
I am getting the following exception when i am trying to run my client code.
client code is running perfectly, when i tried it on the same system on which server is running. I am using WSAD 5.0.
is there any further settings required for running clients from a remote machine. Please, somebody help me out.
javax.naming.ServiceUnavailableException: A communication failure occurred while attempting to obtain an initial context using the provider url: "iiop://<mc-name>:2809". Make sure that the host and port information is correct and that the server identified by the provider url is a running name server. If no port number is specified, the default port number 2809 is used. Other possible causes include the network environment or workstation network configuration. Root exception is org.omg.CORBA.TRANSIENT: Connection refused: connect:host=<mc-name>.<my - company>.com,port=2809 minor code: 4942F301 completed: No
the code for looking up is:
Hashtable env = new Hashtable();
env.put(Context.INITIAL_CONTEXT_FACTORY,
"com.ibm.websphere.naming.WsnInitialContextFactory");
env.put(Context.PROVIDER_URL,"iiop://<mc-name>:2809");
Context ctx = new InitialContext(env);
Thanks & Regards
Rajan