users@glassfish.java.net

Hi Guys plz help me in removing this bug...

From: <glassfish_at_javadesktop.org>
Date: Wed, 25 Apr 2007 01:49:33 PDT

Hi,
I am trying to call a remote EJB from a client...
Here is [b]my client code...[/b]

             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...
[b]But if i change the ip address to 127.0.0.1 to my real ip address like 172.20.34.218...[/b]
It is giving this error:

[b]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[/b]
[Message sent by forum member 'gopal1_v' (gopal1_v)]

http://forums.java.net/jive/thread.jspa?messageID=214167