0 Replies Latest reply on Jan 29, 2008 10:27 AM by KrazyK

    Using JNDI remotely

      Okay, i am trying to do some testing against the database in my java IDE. I have a datasource set up in the jrun-resources called ECP. I am trying to bind to this conext using the JNDI port. Properties p = new Properties();
      p.put(Context.INITIAL_CONTEXT_FACTORY, "jrun.naming.JRunContextFactory");
      p.put(Context.PROVIDER_URL, "localhost:2920");
      initialContext= new InitialContext(p);
      System.out.println("about to create initialContext");
      //initialContext= new InitialContext();
      System.out.println("about to get datasource");
      ds = (DataSource) initialContext.lookup ("ECP");

      It finds the database but cannot make the connection

      connection = ds.getConnection();

      I get this error in coldfusion.....anybody konw why??? I have the multi server configuration set up and it works in JRUN just not in coldfusion.

      01/29 12:07:36 debug lookup
      [1]javax.naming.NameNotFoundException: No such binding: JRunSQLInvoker
      at jrun.naming.ContextManager.getBinding(ContextManager.java:680)
      at jrun.naming.ContextManager.getBinding(ContextManager.java:686)
      at jrun.naming.ContextManager.getObject(ContextManager.java:690)
      at jrun.naming.ContextManager.lookup(ContextManager.java:463)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      at java.lang.reflect.Method.invoke(Unknown Source)
      at jrunx.cluster.ClusterableServiceAdapter.invoke(ClusterableServiceAdap