Here is the procedure, how to configure Oracle datasource in Tomcat and lookup the same. 1. Get Oracle driver Download Oracle driver from here and copy it to $TOMCATlib […]
JNDI style is typical when using an application server(Weblogic, JBOSS) or a web container(Apache Tomcat). Here’s a example of the lookup Datasource created in Server. import java.sql.Connection;import java.sql.SQLException;import javax.naming.Context;import javax.naming.InitialContext;import […]