Wrong way around take a look on the parameters you can pass to
IntitialContext. There you can pass in enviormentvasriables as a hash table.
In other words
Hastable env = new Hastable();
//Set enviorment
env.put(....
Context ctx = new InitialContext(env);
Regards,
Torgeir
-----Original Message-----
From: Ray [mailto:[EMAIL PROTECTED]]
Sent: 13. august 2000 21:11
To: Orion-Interest
Subject: Setting system properties
Hi there again ....
I have a question setting system properties under Orion.
I have the following lines of code in my client app:
System.setProperty("java.naming.factory.initial",
"com.evermind.server.rmi.RMIInitialContextFactory");
System.setProperty("java.naming.provider.url", "ormi://localhost/store");
System.setProperty("java.naming.security.principal", "user");
System.setProperty("java.naming.security.credentials", "456");
.. which throws a security exception saying that I don't have the correct
username/password.
But when I put the settings in a jndi.properties file, they all work
correctly. Is there any way to put the settings in the code?
Thanks