Configuring the backup servers

You can configure the backup server by using the JReport Administration page or the server.properties file.

Using the JReport Administration page
  1. Launch JReport Enterprise Server on the backup server, and then log onto the JReport Administration page (port 8889 by default).
  2. Click Configuration on the system toolbar, then click the Cluster tab.
  3. Check the Backup Server option to indicate that this server will run as a backup server in the cluster.
  4. In the Admin Server's RMI Host text field, type the RMI IP address or host name of the admin server.
  5. In the Admin Server's RMI Port text field, type the RMI port number of the admin server.
  6. In the Server's RMI Host text field, type the RMI IP address or host name of the local server.
  7. In the Server's RMI Port text field, type the RMI port number of the local server.
  8. Specify the paths of the shared directories on the shared disk (mapped network drive), such as shared properties directory, shared realm directory, shared resource root directory, shared temporary directory, and shared history directory. Make these settings consistent with those of the admin server.
  9. Make sure that the backup server uses the same database as the admin server. If the system database of the backup server is different from the admin server's, after the backup server is promoted to be the admin server, the new admin server cannot retrieve data stored in the original admin server's system database.

    If you are using HSQLDB for JReport Enterprise Server's system database, click Data on the system toolbar, then in the URL text field, make the system database be in the shared properties directory as set in step 8.
  10. Shut down JReport Enterprise Server on the backup server.
Using the server.properties and dbconfig.xml files
  1. Launch JReport Enterprise Server once on the backup server, and then shut it down.
  2. Open the server.properties file in <install_root>\bin.
  3. Modify the properties file as follows:
  4. Specify the paths of the shared directories on the shared disk (mapped network drive), such as shared properties directory, shared realm directory, shared resource root directory, shared temporary directory, and shared history directory.

    Add the following properties to the server.properties file:

  5. Make sure that the backup server uses the same database as the admin server. If the system database of the backup server is different from the admin server's, after the backup server is promoted to be the admin server, the new admin server cannot retrieve data stored in the original admin server's system database.

    If you are using HSQLDB for JReport Enterprise Server's system database, edit dbconfig.xml in <install_root>\bin by making the system database be in the shared properties directory as set in step 4.

Notes: