You can set up and configure your Apache Derby database
manually for Application Center with WebSphere® Application Server.
About this task
Complete the Apache Derby database setup procedure before
continuing.
Procedure
- Determine a suitable directory for the JDBC driver JAR
file in the WebSphere Application Server installation
directory.
If this directory does not exist, create
it.
- For a standalone server, you can use a directory such as was_install_dir/optionalLibraries/IBM/Worklight/derby.
- For deployment to a WebSphere Application Server ND
cell, use was_install_dir/profiles/profile-name/config/cells/cell-name/Worklight/derby.
- For deployment to a WebSphere Application Server ND
cluster, use was_install_dir/profiles/profile-name/config/cells/cell-name/clusters/cluster-name/Worklight/derby.
- For deployment to a WebSphere Application Server ND
node, use was_install_dir/profiles/profile-name/config/cells/cell-name/nodes/node-name/Worklight/derby.
- For deployment to a WebSphere Application Server ND
server, use was_install_dir/profiles/profile-name/config/cells/cell-name/nodes/node-name/servers/server-name/Worklight/derby.
- Add the Derby JAR file from product_install_dir/ApplicationCenter/tools/lib/derby.jar to
the directory determined in step 1.
- Set up the JDBC provider.
- In the WebSphere Application Server console,
click .
- Select the appropriate scope from the Scope combination
box.
- 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 the JAR
file in the directory determined in step 1, replacing was_install_dir/profiles/profile-name with
the WebSphere Application Server variable
reference ${USER_INSTALL_ROOT}.
- Click Finish.
- Create the data source for the Worklight database.
- In the WebSphere Application Server console,
click .
- Select the appropriate scope from the Scope combination
box.
- Click New.
- Set Data source Name to Application
Center Database.
- Set JNDI name to jdbc/AppCenterDS.
- Click Next.
- Select the existing JDBC Provider that is named Worklight
- Derby JDBC Provider.
- Click Next.
- Click Next.
- Click Finish.
- Click Save.
- In the table, click the Application Center
Database data source that you created.
- Under Additional Properties,
click Custom properties.
- Click databaseName.
- Set Value to the path to the APPCNTR database
that is created in Setting up your Apache Derby database manually for Application Center.
- Click OK.
- Click Save.
- At the top of the page, click Application
Center Database.
- Under Additional Properties,
click WebSphere Application Server data source properties.
- Select Non-transactional datasource.
- Click OK.
- Click Save.
- In the table, select the Application Center
Database data source that you created.
- Optional: Only if you are not on the console
of a WebSphere Application Server Deployment
Manager, click test connection.