users@glassfish.java.net

Re: Connecting to EJB from remote web server

From: <glassfish_at_javadesktop.org>
Date: Fri, 18 May 2007 02:22:01 PDT

One more remark.
If I use System properties to set ORB parameter all is working OK.
e.g.
        Properties props = System.getProperties(); // new Properties();

        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");

        props.setProperty("org.omg.CORBA.ORBInitialHost", "127.0.0.1");

        props.setProperty("org.omg.CORBA.ORBInitialPort", "3701");
        Context ic2 = (Context)new InitialContext();

        EJBKESessionFacade facade = (EJBKESessionFacade)ic2.lookup("com.sitronicsts.ngage.ke.datalayer.core.EJBKESessionFacade");
[Message sent by forum member 'hazurek' (hazurek)]

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