### Integrating remote JReport Server with WebLogic 11g Release 1 (10.3.2) by a WAR file

Here is an example illustrating the case of using JSPs based on Remote Server APIs to integrate with WebLogic 11g Release 1 (10.3.2).

It is assumed that:

- WebLogic is installed in `C:\bea` in computer A.
- JReport Server is installed in `C:\JReport\Server` in computer B. The computer IP is 127.0.0.1.

Take the following steps to integrate remote JReport Server with WebLogic:

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

Below show the details of each step:

#### Generating a 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. If you have not already created a WebLogic Domain for JReport Server you must create one before starting the integration.
2. In computer A, start WebLogic by running startWeblogic.sh in `C:\bea\user_projects\domains\domain_name\bin`.
3. In computer B, access the WebLogic Administrative Console by using URL `http://hostname:7001/console/`, where the hostname is computer A's host name or IP address, and 7001 is the port number.
4. After your successful login, in the Domain Structure panel on the left, click Deployments node.
5. In the Summary of Deployments panel, click Install.
6. In the Install Application Assistant panel, click the upload your file(s) link.
7. In the Deployment Archive section, click Browse to select the remote.war file in `C:\JReport\Server\bin\distribute`, and then click Next.
8. Keep clicking Next until the Finish button is enabled, and then click Finish.
9. Start JReport Server in computer B. Then go to computer A and access JReport Server using the following URL:

   `http://localhost:7001/remote/`