Integrating remote JReport Server with IBM WebSphere 7 by a WAR file

Here is an example illustrating the case of using JSPs based on Remote Server APIs to integrate with IBM WebSphere 7.

It is assumed that:

Take the following steps to integrate remote JReport Server with IBM WebSphere:

  1. Generate a WAR file.
  2. Configure JReport Server.
  3. Deploy the WAR file.

Below show the details for each step:

Generating the WAR file

  1. In computer B, use the tool makewar.bat to build the JReport Server WAR file as defined by makewar.xml for remote integration. Both makewar.bat and makewar.xml are located in C:\JReport\Server\bin. Run the following commands in DOS window and the generated WAR file remote.war will be saved to the directory C:\JReport\Server\bin\distribute.

    makewar.bat buildRemoteWar -Djrs.remote.host=127.0.0.1 -Djrs.remote.rmiport=1129 -Djrs.rmi.auth_file=C:\JReport\Server\bin\rmi.auth

  2. Copy the rmi.auth file from C:\JReport\Server\bin in computer B to C:\JReport\Server\bin in computer A.

Configuring JReport Server

  1. Make sure JReport Server has been started once in order that the server.properties file is generated.
  2. Change server.properties file in C:\JReport\Server\bin as follows:

    server.rmiserver.enable=true
    server.rmiadminservice.enable=true

Deploying the WAR file

  1. In computer A, start IBM WebSphere.
  2. In computer B, access the WebSphere Administrative Console by using the URL: http://hostname:9060/ibm/console, where the hostname is computer A's host name or IP address, and 9060 is the port number.
  3. After successfully log in, expand the Applications node, select Application Types and then Websphere enterprise applications.
  4. Click Install.
  5. Click Browse to select the remote.war file, and then click Next.
  6. Keep clicking Next until you see the requirement for specifying context root.
  7. In the Context Root field, type a context path such as /remote/, then click Next.
  8. Click Finish on the Summary page. The installing process may take several minutes, wait until the process is completed.
  9. Click Save.
  10. Select remote.war and then click Start.
  11. Access JReport Server using the following URL:

    http://hostname:9080/remote/jinfonet/default.jsp

    Here the hostname is computer A's host name or IP address.