Jimmy Emmanual wrote:
1. Bind datasource to a file system context

   try {
      Hashtable env = new Hashtable();
      env.put(Context.INITIAL_CONTEXT_FACTORY,
"com.sun.jndi.fscontext.RefFSContextFactory");
      env.put(Context.PROVIDER_URL, "file:/C:/temp/jndi");

Problem with that is, if your JNDI clients look up values in your provider by things like "java:/comp/env", binding them in the fscontext will fail on Windows :(. "java:" (ending with a colon) isn't an appropriate filename on Windows.

- Scott

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to