This discussion is archived
1 Reply Latest reply: Mar 6, 2013 9:05 PM by EJP RSS

Weblogic JNDI look up is not working through java code.

995354 Newbie
Currently Being Moderated
Hi ,
I have an web application , by using that we are data base CRUD operations. For some operations JNDI is working fine for some operations where as for some operations not working.
But we are using same peace of code for getting the connection from JNDI data source .

Datasource datasource =  (DataSource)new InitialContext().lookup("VOICED_DATASOURCE");
Connection conn =datasource.getConnecion;

Then we changed data source to normal JDBC connection string , it was working fine .

Connection conn = DriverManager.getConnection("oracle.jdbc.thin@localhost:port/db name","username","password");

Can anyone please help me out , why with data source it is not working ?

Thanks in advance



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