I have created a JNDI data-source using my weblogic console but I am not able to access the object from my web application. Below are the details
In weblogic 10.3.6,
Tried your answer in weblogic 12c but not worked..!
When i tried by using only the name of dataSource myDB (removed the jdbc/) it worked fine.
myDB
jdbc/
Context initContext = new InitialContext(); DataSource ds = (DataSource)initContext.lookup("myDB"); jndiConnection = ds.getConnection();