Atul -

According to the J2EE user's guide, when you are running your client on a different host from the server, you have to set the org.omg.CORBA.ORBInitialHost property in the client as a reference to the server host.  You do this with the -Dorg.omg.CORBA.ORBInitialHost=<hostname> arg to your client VM.

John Collins
University of Minnesota

Atul Singh Chauhan wrote:

  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 ...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.
=========================================================================== To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff EJB-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to