Configure WebSphere Application Server for Derby manually
We can set up and configure the Apache Derby database manually with WebSphere Application Server.
Complete the Apache Derby database setup procedure before continuing.
- Add the Derby JAR file from MF_HOME/ApplicationCenter/tools/lib/derby.jar to was_install_dir/optionalLibraries/IBM/mfp_server/jdbc_driver/derby.
If that directory does not exist, create it.
- Set up the JDBC provider.
- In theWebSphere Application Server console, click Resources > JDBC > JDBC Providers.
- Set the scope to Node level.
- Click New.
- Set Database type to User-defined.
- Set Class Implementation name to org.apache.derby.jdbc.EmbeddedConnectionPoolDataSource40.
- Set Name to Worklight - Derby JDBC Provider.
- Set Description to Derby JDBC provider for Worklight.
- Click Next.
- Set the Class path to was_install_dir/optionalLibraries/IBM/mfp_server/jdbc_driver/derby/derby.jar.
- Click Finish.
- Create the data source for the runtime database.
- In the WebSphere Application Server console, click Resources > JDBC > Data sources.
- Set the scope to Node level.
- Click New.
- Set Data source Name to Worklight Database.
- Set JNDI name to jdbc/WorklightDS.
- Click Next.
- Select the existing JDBC provider named Worklight - Derby JDBC Provider.
- Click Next.
- Click Next.
- Click Finish.
- Click Save.
- In the table, click the Worklight Database datasource created.
- Under Additional Properties, click Custom properties.
- Click databaseName.
- Set Value to the path to the WRKLGHT database created by the configuredatabase ant task.
- Click OK.
- Click Save.
- At the top of the page, click Worklight Database.
- Under Additional Properties, click WebSphere Application Server data source properties.
- Select Non-transactional datasource.
- Click OK.
- Click Save.
- In the table, select the Worklight Database datasource created.
- Click test connection (only if you are not on the console of a WAS dmgr).
- Set up the data source for the reports database.
- In the WebSphere Application Server console, click Resources > JDBC > Data sources.
- Set the scope to Node level.
- Click New.
- Set Data source name to Worklight Reports Database.
- Set JNDI name to jdbc/WorklightReportsDS.
- Click Next.
- Select the existing JDBC provider named Worklight - Derby JDBC Provider.
- Click Next.
- Click Next.
- Click Finish.
- Click Save.
- In the table, click the Worklight Reports Database datasource created.
- Under Additional properties, click Custom properties.
- Click databaseName.
- Set Value to the path to the WLREPORT database created by the configuredatabase ant task.
- Click OK.
- Click Save.
- At the top of the page, click Worklight Reports Database.
- Under Additional Properties, click WebSphere Application Server data source properties.
- Select Non-transactional datasource.
- Click OK.
- Click Save.
- In the table, select the Worklight Reports Database datasource created.
- Optional: Only if you are not on the console of a WebSphere Application Server Deployment Manager, click test connection.
Parent topic: Configure the Apache Derby databases manually