JNDI file connection setup
This setup requires JNDI.
Simply create a properties file matching the name of the required data source in a directory called "
ie: to define the JNDI data source "
/config
" on the classpath.
ie: to define the JNDI data source "
jdbc/myDataSourceName
", place the contents below in the file
"/config/jdbc/myDataSourceName.properties
" on the classpath:
javax.sql.DataSource=org.apache.commons.dbcp.BasicDataSourceFactory
driverClassName=org.gjt.mm.mysql.Driver
url=jdbc\:mysql\://localhost/test
username=test
password=test
database=test
maxActive=200
Note: this data source uses DBCP as a factory.
Next you must tell mts to use this JNDI name as its default data source.