Forum Stats

  • 3,769,518 Users
  • 2,252,972 Discussions
  • 7,875,070 Comments

Discussions

How to connect to weblogic data source using jndi name?

753120
753120 Member Posts: 1
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?
This discussion has been closed.