Example 1: Setting up a simple JReport Enterprise Server cluster

This example demonstrates how to configure a simple JReport Enterprise Server cluster by modifying the configuration options on the JReport Administration page on each JReport Enterprise Server.

Example description:

Take the following steps to set up the cluster:

  1. Install JReport Enterprise Server to C:\JReport\Serveradmin. This server will run as the admin server.
  2. Install JReport Enterprise Server to C:\JReport\Serverslave. This server will be configured to run as a slave server.

    Note: When installing the two JReport Enterprise Servers, you should use the special license key only for JReport Enterprise Server cluster.

  3. Launch the JReport Enterprise Server installed to C:\JReport\Serverslave.
  4. In the address bar of an Internet Explorer browser, type http://localhost:8889.
  5. On the JReport Administration page, click Configuration on the system toolbar.
  6. In the Cluster tab, select the Slave Server radio button, and then type the IP address or host name of the admin server in the Admin Server's RMI Host box. Here 127.0.0.1 is used.
  7. In the Service tab, type the port number as required in the Port box.

    The port is the service port you use to access the JReport Console page. The default port number is 8888. If there are two or more JReport Enterprise Servers started on one machine, the service port number of each server must be changed to a unique one, in order to avoid port conflicts.

    In this example, the port number is changed to 8886, since the admin server will use the default port number 8888.

  8. Type the port number you want in the Administration Port box. In this example, 8887 is used.

    The reason why the port number should be changed here is for the same reason as that of step 5.

  9. Click OK to accept all the changes.
  10. Shut down this JReport Enterprise Server.
  11. Launch the JReport Enterprise Server installed to C:\JReport\Serveradmin.

    Note that when installing a JReport Enterprise Server with a special license key for cluster, the server will be an admin server by default. In this example, the shared disk and load balance feature are not required, and so the admin server does not need to be configured.

  12. Launch the slave server. The following information is available in the Command Prompt window.

    Connecting to admin server [127.0.0.1:1129].
    Connected to admin server [127.0.0.1:1129] successfully.

    This means that the JReport Enterprise Server cluster has been configured and started successfully.

  13. Access the JReport Console page of the admin server using port 8888 as an administrator, and then submit a scheduled task. In the Scheduled tab, you will see the newly scheduled task.
  14. Access the JReport Console page of the slave server using port 8886 as Tom, and then submit another scheduled task.

Notes: