I read more about JNDI in tomcat, and I read from a few resources that you need to link to factory. They say its often assumed to be "org.apache.tomcat.jdbc.pool.DataSourceFactory". However, most often I see something like this -
<Resource name="jdbc/TestDB" auth="Container" type="javax.sql.DataSource" maxActive="100" maxIdle="30" maxWait="10000" username="javauser" password="javadude" driverClassName="com.mysql.jdbc.Driver" url="jdbc:mysql://localhost:3306/javatest"/>
So what does tomcat do in this case? By default, is "org.apache.tomcat.jdbc.pool.DataSourceFactory"?
source share