users@glassfish.java.net

EJB look up WAN area

From: <glassfish_at_javadesktop.org>
Date: Sun, 20 Jan 2008 02:35:17 PST

Hi dear

I am nilanga from sri lanka, i have develop a application using EJB technology but i have a issue it running through the WAN network my application client is swing, in the LAN area it works properly i can run it any client in the LAN area, the issue is that i can't run it through WAN area, is there any technology sole this prob( example ; my static ip is 220.224.123.175 it bound into US robotic router and incoming ports are forwarded to (8080,4848,3700 ) my server computer 192.168.1.20 LAN server (i have install glassfish in my local com ) 8080,4848 these to port are working (it is ok 220.224.123.175:8080 ,220.224.123.175:4848 )
[b][u] this code is work properly on LAN area[/u][/b]

props.setProperty("java.naming.factory.initial ", "com.sun.enterprise.naming.SerialInitContextFactory");
        props.setProperty("java.naming.factory.url.pkgs", "com.sun.enterprise.naming");
        props.setProperty("java.naming.factory.state ", "com.sun.corba.ee.impl.presentation.rmi.JNDIStateFactoryImpl");

        // optional. Defaults to localhost. Only needed if web server is running
        // on a different host than the appserver
        props.setProperty("org.omg.CORBA.ORBInitialHost", "192.168.1.20");

        // optional. Defaults to 3700. Only needed if target orb port is not 3700.
       props.setProperty("org.omg.CORBA.ORBInitialPort", "3700");
[u]
[b]Here is the arr code i can't change this IP to static ip[/b][/u]

props.setProperty("java.naming.factory.initial ", "com.sun.enterprise.naming.SerialInitContextFactory");
        props.setProperty("java.naming.factory.url.pkgs", "com.sun.enterprise.naming");
        props.setProperty("java.naming.factory.state ", "com.sun.corba.ee.impl.presentation.rmi.JNDIStateFactoryImpl");

        // optional. Defaults to localhost. Only needed if web server is running
        // on a different host than the appserver
        props.setProperty("org.omg.CORBA.ORBInitialHost", "220.224.123.175 ");

        // optional. Defaults to 3700. Only needed if target orb port is not 3700.
       props.setProperty("org.omg.CORBA.ORBInitialPort", "3700");
[Message sent by forum member 'nilangasalu' (nilangasalu)]

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