4.2.2 RMI Server
To run a custom client viewer on a different machine than the server, you need to set up a server object to handle the viewer requests. The default server object implementation of the repository is based on the standard Java RMI distributed object protocol.
To start an RMI repository on the server, follow these steps:
1. Start the Java Remote Object Registry process (rmiregistry). On a Windows platform, start the registry in a separate window as follows:
start rmiregistry
On a Unix platform, start the Registry as a background process:
nohup rmiregistry &
If the default port of 1099 is in use, you can pass a different port as a parameter.
2. Once a registry process is running, bind the RMI repository object to the registry: On the 'Server Configuration' page, change the server type to 'RMI Server', and click 'Apply'.
3. On the 'Server Status' page, click the 'Start' button to start the RMI server.
You can also start the RMI server manually. With the rmiregistry running, type the following at the command line:
java –Dsree.home=/usr/mysreehomedir inetsoft.sree.rmi. RemoteRepository –url //your-host-name/RepletRepository
You can stop and restart the RMI server using the 'Stop' and 'Restart' buttons on the 'Server Status' page.
| << 4.2.1 Servlet with Embedded Report Engine | © 1996-2013 InetSoft Technology Corporation (v11.5) | 4.2.3 CORBA Server >> |