To start the ray-tracing example from the command
line, you need to have the following services running:
rmid
rmid
is required for activatable objects, like the
transaction manager.
rmiregistry
The RMI registry
service. The book buyer clients use the RMI registry to locate
one another, and optionally, other services.
A Jini registry service. The book buyer clients can
use Jini Lookup services to locate a transaction manager and a
space.
A Jini service that manages
transactions.
An implementation of JavaSpaces technology. You
will need the name of the JavaSpaces service that the clients
should contact.
For instructions on how to start these services, please refer to:
/files/jini1_0/example/raytrace/trace.html
/files/jini1_0/example/genericWorker/worker.html
Where /files
was the directory into which you extracted
the Jini system software and the Outrigger software distributions. In
both of the HTML files, replace the value of the
host
param with the name of the system on which you will
run the example. For instance, if your system is named
myhost.sun.com
, replace value="cocolat.east"
with myhost.sun.com
.
java
<policy-property>
<space-name-property>
[use-registry-property]
[registry-port-property]
[lookup-group-property]
-cp
<space-examples-jar-file>
<codebase-property>
sun.applet.AppletViewer
<file-URL-to-trace.html-file>
java
<policy-property>
<space-name-property>
[use-registry-property]
[registry-port-property]
[lookup-group-property]
-cp
<space-examples-jar-file>
<codebase-property>
sun.applet.AppletViewer
<file-URL-to-worker.html-file>
myhost.sun.com
, and
using a space named JavaSpaces
:
java
-Djava.security.policy=/files/jini1_0/example/books/policy.all
-Doutrigger.spacename=JavaSpaces
-Dcom.sun.jini.use.registry=yes
-cp /files/jini1_0/lib/space-examples.jar
-Djava.rmi.server.codebase=http://'hostname':8080/space-examples-dl.jar
sun.applet.AppletViewer
file:///files/jini1_0/example/raytrace/trace.html
java -Djava.security.policy=/files/jini1_0/example/books/policy.all
-Doutrigger.spacename=JavaSpaces
-Dcom.sun.jini.use.registry=yes
-cp /files/jini1_0/lib/space-examples.jar
-Djava.rmi.server.codebase=http://'hostname':8080/space-examples-dl.jar
sun.applet.AppletViewer
file:///files/jini1_0/example/genericWorker/worker.html
myhost.sun.com
, and using a space named
JavaSpaces
:
java
-Djava.security.policy=/files/jini1_0/example/books/policy.all
-Doutrigger.spacename=JavaSpaces
-Dcom.sun.jini.lookup.groups=public
-cp /files/jini1_0/lib/space-examples.jar
-Djava.rmi.server.codebase=http://'hostname':8080/space-examples-dl.jar
sun.applet.AppletViewer
file:///files/jini1_0/example/raytrace/trace.html
java
-Djava.security.policy=/files/jini1_0/example/books/policy.all
-Doutrigger.spacename=JavaSpaces
-Dcom.sun.jini.lookup.groups=public
-cp /files/jini1_0/lib/space-examples.jar
-Djava.rmi.server.codebase=http://'hostname':8080/space-examples-dl.jar
sun.applet.AppletViewer
file:///files/jini1_0/example/genericWorker/worker.html