> Also, I want to put those properties into my InitialContext, instead of
> declaring them at the command line (i.e. with "-D..."). Any idea how to do
> this? When I tried this:
>
> props.put(java.naming.factory.initial, "");
>
> I get an exception that the symbol ".factory" is unrecognized. Any help
> would be MUCH appreciated. Thanks!
>
> Robert
>

Seems very strange... Why are you wanna do this?

If you do not want do have the -D parameters at the startup (why not, this
is quite common?), put it into a properties file (just like JOnAs does with
jndi.properties) and read that file in the startup code of your client
software; or put the parameters any way you want into the VM environment
(System.setProperty or setProperties).

The above lines are not working since java.naming.factory.initial has to be
demarcated by " to mark it as a string (Properties.put expects to get a
string key and value pair).

HTH
Markus

I cannot see why you want to put them into the intial context since to get
that intial context it is essential to already have the properties set into
the VM environment. So what sense shall this make?


----
To unsubscribe, send email to [EMAIL PROTECTED] and
include in the body of the message "unsubscribe jonas-users".
For general help, send email to [EMAIL PROTECTED] and
include in the body of the message "help".

Reply via email to