For most deployments, you should be able to configure your JDBC connection by simply specifying a few environmental properties. The properties that are referenced by the default DataSource are:
- db.driver
- the fully-qualified class name of the JDBC driver to use (this must be on the classpath of the server)
- db.url
- the JDBC URL to the database to use
- db.username
- the username through which to access the database
- db.password
- the DB password for the given username
- db.poolsize.max
- the maximum number of active connections that can be allocated from the connection pool simultaneously (set to a non-positive integer for no limit)
If you need to use a different implementation of DataSource, or if you need finer-grained control over the configuration properties, you can create your own bean to override the default one, as described in Extending Atomserver with Spring. Just make sure to name the bean org.atomserver-dataSource if you want it to be injected into the other Atomserver beans.
Atomserver Database Configuration