Start the Jini Run-time Service
- The Jini distribution comes with the basic services needed to support
Jini, as well as a few other "optional" services.
- Required services:
- 1. A simple Web server.
Jini requires this facility because when downloaded code is needed through
RMI, the actual transmission of the code happens via the HTTP
protocol.
For Windows:
Java -jar C:\jini1_0\lib\tools.jar -port 8080 -dir C:\jini1_0\lib
-verbose
- 2. The RMI activation daemon.
This process allows objects that may be invoked only rarely to essentially
"go to sleep", and be automatically awakened when they are needed. At
minimum, you will need to run the activation daemon on each host that runs
a lookup service.
rmid
- 3. A lookup service.
The core of Jini, keeps track of the currently active Jini services that
are available on a LAN.
Java -Djava.security.policy=[security_policy] -jar [reggie jar
file] [lookup client codebase] [lookup policy file] [log directory]
[lookup groups]
- 4. You can also start required service via the GUI.
For Windows:
java -cp C:\jini1_0\lib\jini-examples.jar
com.sun.jini.example.service.StartService