Configuring Apache Tomcat for Derby manually for Application Center

You can set up and configure your Apache Derby database manually for Application Center with the Apache Tomcat application server.

About this task

Complete the Apache Derby database setup procedure before continuing.

Procedure

  1. Add the Derby JAR file from product_install_dir/ApplicationCenter/tools/lib/derby.jar to the directory $TOMCAT_HOME/lib.
  2. Prepare an XML statement that defines the data source, as shown in the following code example.
      <Resource auth="Container"
                driverClassName="org.apache.derby.jdbc.EmbeddedDriver"
                name="jdbc/AppCenterDS"
                username="APPCENTER"
                password=""
                type="javax.sql.DataSource"
                url="jdbc:derby:DERBY_DATABASES_DIR/APPCNTR"/>
  3. Insert this statement in the server.xml file, as indicated in Configuring Apache Tomcat for Application Center manually.