Hi all,
I have written a simple Stateless session EJB and Deployed it in J2EE RI.
I'm trying to connect to the EJB using a Standalone Application (RMI-IIOP Stubs).
When my client is on the same machine where the J2EE is running the client gives the expected result, but when I run the client from a different machine it gives the following exception :
javax.naming.NamingException: Error accessing repository: Cannot connect
to ORB
        at com.sun.enterprise.naming.EJBCtx.<init>(EJBCtx.java:51)
        at
com.sun.enterprise.naming.EJBInitialContextFactory.getInitialContext(
EJBInitialContextFactory.java:62)
        at
javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:6
72)
        at
javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:250
)
        at javax.naming.InitialContext.init(InitialContext.java:226)
        at javax.naming.InitialContext.<init>(InitialContext.java:182)
        at demoBean.DemoClient.getInitialContext(DemoClient.java:94)
        at demoBean.DemoClient.main(DemoClient.java:26)
It seems error is in getting the Initial Context to the Naming service running on remote machine, probably some properties are to be set like 'INITIAL_CONTEXT_FACTORY'.
 
Can anybody suggest what could be the possible solution to this problem.
 
Thanx in Advance
ATUL S.

Reply via email to