https://hiopyuheung.com/
To carry out a lookup and open a connection to the database logically certain to the JNDI name, use the logical JNDI name. Doing this requires casting the lookup result, which is in any other case a Java Object, to OracleDataSource and then using its getConnection technique to open the connection. Creating and registering data sources is often dealt with by a JNDI administrator, not in a JDBC application. Using JNDI functionality requires the jndi.jar file to be within the CLASSPATH environment variable. This file is included with the Java products on the set u