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.
The book-buyer clients can use Jini lookup services to
locate a transaction manager and a space.
A Jini technology-enabled
service that manages transactions.
An implementation of the
JavaSpaces specification. You will need the name of the
JavaSpaces technology-enabled service that the clients should
contact.
For instructions on how to start these services, please refer to:
/files/jini1_0_1/example/raytrace/trace.html
/files/jini1_0_1/example/genericWorker/worker.html
Where /files
was the directory into which you extracted
the Jini Technology Starter Kit 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_1/example/books/policy.all
-Doutrigger.spacename=JavaSpaces
-Dcom.sun.jini.use.registry=yes
-cp /files/jini1_0_1/lib/space-examples.jar
-Djava.rmi.server.codebase=http://`hostname`:8080/space-examples-dl.jar
sun.applet.AppletViewer
file:///files/jini1_0_1/example/raytrace/trace.html
java -Djava.security.policy=/files/jini1_0_1/example/books/policy.all
-Doutrigger.spacename=JavaSpaces
-Dcom.sun.jini.use.registry=yes
-cp /files/jini1_0_1/lib/space-examples.jar
-Djava.rmi.server.codebase=http://`hostname`:8080/space-examples-dl.jar
sun.applet.AppletViewer
file:///files/jini1_0_1/example/genericWorker/worker.html
myhost.sun.com
, and using a space named
JavaSpaces
:
java
-Djava.security.policy=/files/jini1_0_1/example/books/policy.all
-Doutrigger.spacename=JavaSpaces
-Dcom.sun.jini.lookup.groups=public
-cp /files/jini1_0_1/lib/space-examples.jar
-Djava.rmi.server.codebase=http://`hostname`:8080/space-examples-dl.jar
sun.applet.AppletViewer
file:///files/jini1_0_1/example/raytrace/trace.html
java
-Djava.security.policy=/files/jini1_0_1/example/books/policy.all
-Doutrigger.spacename=JavaSpaces
-Dcom.sun.jini.lookup.groups=public
-cp /files/jini1_0_1/lib/space-examples.jar
-Djava.rmi.server.codebase=http://`hostname`:8080/space-examples-dl.jar
sun.applet.AppletViewer
file:///files/jini1_0_1/example/genericWorker/worker.html