1 Reply Latest reply on Mar 7, 2013 5:05 AM by EJP

    Weblogic JNDI look up is not working through java code.

      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