To set the connection parameters for the external database server, configure the externalDataSource helper bean as follows:
| 1. | In sample-applicationContext-externalAuth-db-mt.xml, locate the externalDataSource bean. |
| 2. | Specify the following information: |
| • | driverClassName property – The name of the JDBC driver class for your database. Make sure the driver jar library is available on the classpath; for example, you can place the jar in the lib directory of your application server or in the <js-webapp>/lib directory. |
| • | url property – The JDBC URL for your database server, including the hostname, port, and database you want to access. |
| • | username property – The username of your database administrator. |
| • | password property – The password of your database administrator. |
The following is an example of the connection information for a MySQL database:
Recommended Comments
There are no comments to display.