This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js and have Paul Jensen on-line!
See this thread for details.
Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

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

 
Robert Double
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!