Skip to Main Content

DevOps, CI/CD and Automation

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to connect to weblogic data source using jndi name?

753120Feb 11 2010
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?

Comments

Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Mar 11 2010
Added on Feb 11 2010
0 comments
3,558 views