Hi
I am testing The Spring Petclinic Application with mysql database, it is ok with the Local DataSource with Spring's DriverManagerDataSource. However, I want to use a JNDI connection-pooled datasource which is essential to real production apps. I am not clear how is such a data source configured.
The Petclinic documentation has the following statement:
To use a J2EE server supplied connection-pooled data source with Tomcat, it will be necessary to use and possibly edit the appropriate context definition file for the petclinic webapp. To use it, deploy a copy of the appropriate context definition file in Tomcat's webapps directory and restart the server. Consult the Tomcat log files if something goes wrong when starting either Tomcat or the Petclinic application. The context files are named petclinic_tomcat_*.xml...
I am not sure what "Tomcat's webapps directory" means (Tomcat /webapps? ) and what other configurations should be made in e.g. web.xml, applicationContext-jdbc.xml. Or should the contents of petclinic_tomcat_mysql.xml be copied to Tomcat /conf/server.xml?


Reply With Quote