Using the JNDI Memory implementation separately

All this loading of .properties files is all well and good, but there's a good chance that all you want to do is utilize Simple-JNDI's in-memory JNDI implementation. To do this just have a jndi.properties file containing the following line.

     java.naming.factory.initial=org.osjava.sj.memory.MemoryContextFactory