We have a commercial software product that is being developed. It supports Oracle, MySQL and SQL * Server (we also use H2 for testing). We are testing integration with these different databases using specific version JDBC drivers. Maven does a great job of all this.
When packaging an application as a WAR, is it good if we enable JDBC drivers? What is the standard practice?
Since we do not know which database can be used ahead of time, we will have to include all of them. The target servlet containers are Tomcat and Jetty, but some clients will also want to run on WebSphere and JBoss.
So, does the servlet contain and the application servers have their own JDBC drivers? Will there be our conflict? Another problem is that we developed and tested with one version of the driver, and if the client uses a different version, we may have problems.
We are currently using Spring beans data source, but are in the process of moving on to looking for JNDI for the data source.
java jdbc servlets
Hdave
source share