Title: Data sources

I am working on a project and would like to be able to retrieve a data connection from the Orion JDNI. I have tried the following:

      java.util.Properties props = new java.util.Properties();
      props.put(javax.naming.Context.INITIAL_CONTEXT_FACTORY, "com.evermind.server.ApplicationClientInitialContextFactory");

      props.put(javax.naming.Context.PROVIDER_URL, "ormi://localhost");
      props.put(javax.naming.Context.SECURITY_PRINCIPAL, "admin");
      props.put(javax.naming.Context.SECURITY_CREDENTIALS, "123");
      javax.naming.Context initCtx = new InitialContext(props);

I get an exception with a blank message. Not sure what I am doing wrong here. Can anyone help????

SnowWolf Wagner

Reply via email to