You can use an external database with License Server. The following databases are supported:
- MySQL 5
- Sybase Adaptive Server Enterprise (ASE) 15
To migrate to an external database, make the following modifications to licenseServer.war/WEB-INF/classes/META-INF/modelContext.xml
:
- In
org.apache.commons.dbcp.BasicDataSource
bean properties, comment outdriverClassName
property referencing the embedded database, and uncommentdriverClassName
property corresponding to the external database of your choice. - In
org.springframework.orm.jpa.vendor.TopLinkJpaVendorAdapter
bean properties, comment outdatabasePlatform
property that referencesoracle.toplink.essentials.platform.database.DerbyPlatform
SQL dialect, and uncomment thedatabasePlatform
property corresponding to the external database of your choice. - Replace default values for
url
,username
, andpassword
properties ofdataSource
bean with production values. Make sure to set necessary database connection settings using theurl
property.