There is only one configuration file for LML library: lml-conn-settings.properties. This file must be placed in the top level of your source code.
It is a properties file where you tell the engine the way it must gather database connections.
Currently there are two supported ways:
| Name | Description | Example |
|---|---|---|
| lml.connection.settings.db.driver | jdbc driver to use | org.apache.derby.jdbc.ClientDriver |
| lml.connection.settings.db.url | jdbc url connection | jdbc:derby://localhost:1527/sample |
| lml.connection.settings.db.user | database user | app |
| lml.connection.settings.db.password | user password | app |
| lml.connection.settings.pool.size | number of connections the pool will store | 5 |
| Name | Description | Example |
|---|---|---|
| lml.connection.settings.datasource.jndi | data source JNDI name | jdbc/sample |
IMPORTANT: data source mode is the main one, so if you fill the properties file with both configurations, the engine will use the data source JNDI name.