This discussion is archived
0 Replies Latest reply: Feb 11, 2010 4:27 AM by 753120 RSS

How to connect to weblogic data source using jndi name?

753120 Newbie
Currently Being Moderated
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?

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points