0 Replies Latest reply: Feb 11, 2010 6:27 AM by 753120 RSS

    How to connect to weblogic data source using jndi name?

      I am trying to connect to database using data source look up from weblogic as below:
      factory = "weblogic.jndi.WLInitialContextFactory"
           conn = zxJDBC.lookup('ApplicationDB',INITIAL_CONTEXT_FACTORY=factory)
      this is throwing DatabaseError:

      however i can connect to the db using uname, pwd and url. its working fine using zxJDBC in jython.

      any clue why the first one is failing?