Hi,
I am trying to call a
remote EJB from a client...
Here is
my client code...
InitialContext ic = new InitialContext();
Object o= ic.lookup("iiop://127.0.0.1:3700/ejb/TellHelloBean");
TellHelloRemoteHome helloHome = (TellHelloRemoteHome) PortableRemoteObject.narrow(o, TellHelloRemoteHome.class);
TellHelloRemoteBusiness obj=helloHome.create();
System.out.println("" + obj.printHello());
If try this it is working prperly...
But if
i change the ip address to 127.0.0.1 to my real ip address like 172.20.34.218...It is giving this error:
Connection failure: socketType: IIOP_CLEAR_TEXT; hostname: 172.20.33.218; port: 3700"
org.omg.CORBA.COMM_FAILURE: vmcid: SUN minor code: 201 completed: No