IntelliJ Java IDE
The moose likes EJB and Other Java EE Technologies and the fly likes ow do you run a J2EE client application on a remote machine? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » EJB and Other Java EE Technologies
Reply Bookmark "ow do you run a J2EE client application on a remote machine? " Watch "ow do you run a J2EE client application on a remote machine? " New topic
Author

ow do you run a J2EE client application on a remote machine?

Robert Double
Greenhorn

Joined: Nov 18, 2001
Posts: 7
Hi,
I am using the J2EE 1.3 RI, and trying to run a client on a remote machine accessing the Reference Implementation J2EE server. I can get the application to run fine if I start it from the command line like :
java -Dorg.omg.CORBA.ORBInitialHost=hostname class
But I want to be able to set the environment variable from within the application. So I done the following, and reading the documentation it should of worked.
Hashtable hash = new Hashtable();
hash.put("org.omg.CORBA.ORBInitialHost", "hostname");
InitialContext ctx = new InitialContext(hash);
But it doesnt work. Can anyone suggest to me why it doesnt work?? The JNDI constructor for InitialContext states that it can be passed additional environment variables?
Thanks in advance.... as its probably something really stupid I have done.
Rob
 
 
subject: ow do you run a J2EE client application on a remote machine?
 
Threads others viewed
EJB Runtime error
bean relation
how a client locates a server
JNDI Initial Context
pls help! Error with client in j2ee server
developer file tools