Translations of this page:

LML Configuration

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:

  • Engine connections pool: Library implements a basic connections pool to manage database connections. It's recommended for standalone applications. To use it, you must fill the properties file with this settings:
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


  • Server data source: When using the library in a web applications you can use a server data source through JNDI. You only need to set the jndi name.:
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.

 
configuration.txt · Last modified: 2008/05/14 23:00 (external edit)
 
Recent changes RSS feed Creative Commons License Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki