I am using com.sun.jndi.fscontext.RefFSContextFactoryfactory based JNDI context . It seems to be taking the drive where the java application is running.
Hashtable properties = new Hashtable(2);
properties.put(Context.PROVIDER_URL,"file:///tmp/jms/mycontext");
properties.put(Context.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.fscontext.RefFSContextFactory");
InitialContext ctx = new InitialContext(properties);
How can I specify a drive letter, for example d:/tmp/jms/mycontext? Usage file://d:/tmp/jms/mycontextseems to still go to drive c on my system
source
share