Skip to Main Content

Java Development Tools

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!

Unable to resolve jdbc

JayAroraMar 15 2018 — edited Mar 19 2018

Hi Team,

I have configured Datasource in my ADMIN QA server and the target is only admin server and not manage server and i can see the name as "jdbc/ABDBDS" under the JNDI name, i am also able to test the connection.

I have deployed the application on managed server but when i am trying to programmitically access the same connection.

pastedImage_1.png

I am getting run time exception as

Unable to resolve 'jdbc.ABDBDS'. Resolved 'jdbc'; remaining name 'ABDBDS']; Link Remaining Name: 'jdbc/ABDBDS'.

Please is my java pseduo code.

        Context initCtx = new InitialContext();

        ds = (DataSource) initCtx.lookup("java:comp/env/jdbc/ABDBDS");

Am i missing some configuration ?

Regards,Jay

This post has been answered by handat on Mar 15 2018
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 16 2018
Added on Mar 15 2018
8 comments
2,904 views