Page History
Introduction
Three types of datasources can be configured in the Java web application: JDBC, ODBC and JNDI. A datasource must be defined in the
Include Page | ||||
---|---|---|---|---|
|
...
Info | ||
---|---|---|
| ||
This page describes only how a datasource is configured. Using the datasource is outside the scope of this page. Check the documentation of the plugin you intend to use for information on how a datasource is supposed to be used. |
Using the properties file
Configuring a JDBC datasource
Configuring a JDBC datasource named datasource_name must be done by setting the following mandatory properties:
...
Info |
---|
Using the development plugin settings always creates the optional settings in the properties file. See more details in the development plugin section. |
Configuring an ODBC datasource
Configuring an ODBC datasource named datasource_name must be done by setting the following mandatory properties:
Code Block | ||
---|---|---|
| ||
connection.datasource_name.sql.type=odbc connection.datasource_name.sql.database= connection.datasource_name.sql.username= connection.datasource_name.sql.password= |
Configuring a JNDI datasource
Configuring a JNDI datasource named datasource_name must be done by setting the following mandatory properties:
...
The procedure of creating a JNDI datasource is container-specific. Please consult the documentation of the application server running the application on how to create a JNDI datasource.
Using the development plugin
Assuming the Development plugin is installed, the Settings widget can be started by using the button in the top right corner of the dashboard (see Using the development dashboard).
...