This is an exported version of the JIRA issue tracker. Please use the Google Code site to open new tickets or report updates to these existing tickets. Feel free to contact the mailing list with any questions.

[SJN-48] Can/t use System properties to initialise the JNDI
Created: Fri, 16 Jan 2004 08:12:25 -0800 (PST)  Updated: Sun, 18 Jan 2004 17:17:40 -0800 (PST)

Status:Closed
Project:Simple-JNDI
Component/s:
Affects Version/s:0.8
Fix Version/s:0.8.1

Type:BugPriority: Major
Reporter:Henri YandellAssignee:Henri Yandell
Resolution:Fixed 
Environment:


 Description   
But if I do the same but using the system environment (see below) it doesn't work: root and delimiter are set to defaults.

System.setProperty("java.naming.factory.initial","org.osjava.jndi.PropertiesFactory");
        System.setProperty("org.osjava.jndi.root","classpath://config");
        System.setProperty("org.osjava.jndi.delimiter","/");
        Context ctxt = new InitialContext();

Comment by bayard [ Sun, 18 Jan 2004 17:17:40 -0800 (PST) ]
This was from a comment on the mail list from a user; Gary Howard.
Unit tests continue to pass and one of the examples is changed to use the -D method.