Page History
...
- Create a new database for AS 5.3.0 and restore the backup of the old database in this new database.
- To connect AS 5.3.0 to the upgraded database, configure the following files:
Configure the
<AS_HOME_5.3.0>/repository/conf/datasources/masterdatasources.xml
file as shown in the following example:Code Block <datasource> user manager</description> <name>WSO2_CARBON_DB</name> <description>The datasource used for registry and <jndiConfig> <name>jdbc/WSO2CarbonDB</name> </jndiConfig> <definition type="RDBMS"> <configuration> <url>jdbc:mysql://localhost:3306/<new_database></url> <username>username</username> <password>password</password> <driverClassName>com.mysql.jdbc.Driver</driverClassName> <maxActive>80</maxActive> <maxWait>60000</maxWait> <minIdle>5</minIdle> <testOnBorrow>true</testOnBorrow> <validationQuery>SELECT 1</validationQuery> <validationInterval>30000</validationInterval> </configuration> </definition> </datasource>
Go to the
<AS _HOME_5.3.0>/repository/conf/
directory and update the datasource references in theuser-mgt.xml
andregistry.xml
files to match the updated configurations in themasterdatasources.xml
file. The following are sample configurations if the datasource is “jdbc/WSO2CarbonDB”:
registry.xmlCode Block <dbConfig name="wso2registry"> <dataSource>jdbc/WSO2CarbonDB</dataSource> </dbConfig>
usermgt.xml
Code Block <UserManager> <Realm> <Configuration> ... <Property name="dataSource">jdbc/WSO2CarbonDB</Property> </Configuration> ... </Realm> </UserManager>
- The configurations for SaaS web applications has changed in AS 5.3.0. In previous releases, SaaS configurations were enabled in the
web.xml
file of web application by adding a context-param calledcarbon.enable.saas
. In AS 5.3.0, SaaS is configured via thecontext.xml
file that needs to be placed under theMETA-INF/
folder of the web application. See the more details about configuring SaaS applications in AS 5.3.0 from here. Prior to AS 5.3.0, the primary keystore configured in the
carbon.xml
file was used for securing transports. In AS 5.3.0, the keystore used for transports should be separately configured in thecatalina-server.xml
file.Note The “RegistryKeyStore” configuration in
carbon.xml
is removed. See the section on configuring keystores for more information.- Check for any other configurations that were done for AS 5.2.1 (based on your solutions), and update the configuration files in AS 5.3.0 accordingly. For example, external user stores, caching, mounting, etc.
...