<Answer>
    In the deploytool, select your applicaiton and click on the tab "JNDI names".
</Answer>
 
<Question>
    But I have another problem with J2EE-RI.
 
I use a makefile and the tool "packager" to create the .ear.
 
1- It looks that the JNDI name of the components is not a part of the application DD.
Am I true ? why ?
 
2- J2EE-RI a DD named sun-j2ee-ri.xml.
This file contains the JNDI name.
Do you know how you specify this file on the packager command line?
 
may be the -alternativeDescriptorEntrie ?
 
</Question>
 
Thanks for your help.
 
<Tibo/>.
-----Original Message-----
From: Atul Singh Chauhan [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 11, 2000 2:45 AM
To: [EMAIL PROTECTED]
Subject: How to Specify JNDI URL in J2EE RI

 
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