Server can connect to JNDI DB DataSource, which is configured in application server or container. However there are some CloverETL parameters which must be set, otherwise the behaviour may be unpredictable:
datasource.type=JNDI # type of datasource; must be set, because default value is JDBC datasource.jndiName=# JNDI location of DB DataSource; default value is java:comp/env/jdbc/clover_server # jdbc.dialect=# Set dialect according to DB which DataSource is connected to. The same dialect as in sections above. #
Above parameters may be set in the same ways as other params (in properties file or Tomcat context file)
Example of DataSource configuration in Apache Tomcat. Add following code to context file.
<Resource name="jdbc/clover_server" auth="Container" type="javax.sql.DataSource" driverClassName="com.mysql.jdbc.Driver" url="jdbc:mysql://192.168.1.100:3306/clover?useUnicode=true&characterEncoding=utf8" username="root" password="" maxActive="20" maxIdle="10" maxWait="-1"/>