CloverETL Server can connect to a database using JNDI DataSource, which is configured in an application server or container. However, there are some CloverETL parameters which must be set, otherwise the behavior 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 the sections above. #
The parameters above may be set in the same way as other parameters (in the properties file or Tomcat context file).
Example of DataSource configuration in Apache Tomcat.
The following context resource configuration may be added to the [Tomcat_home]/conf/server.xml
file to the <Host>
element.
<Context path="/clover" > <Resource name="jdbc/clover_server" auth="Container" type="javax.sql.DataSource" driverClassName="com.mysql.jdbc.Driver" url="jdbc:mysql://127.0.0.1:3306/clover?useUnicode=true&characterEncoding=utf8" username="root" password="" maxActive="20" maxIdle="10" maxWait="-1"/> </Context>
Do not put the code above into <GlobalNamingResources>
element, since the resource would not be visible by the CloverETL webapp.
Note | |
---|---|
CloverETL's default Quartz configuration does not work with default JNDI DataSource from Weblogic.
Proceed with one of the following options:
|
Tip | |
---|---|
The resource configuration may also be added to the context file |
Important | |
---|---|
|
See Chapter 9, List of Properties for list of properties.
Note | |
---|---|
Continue with: Encrypted JNDI or CloverETL Server Activation |