|
|
TutorialsJini ExampleJxta Example Web Services RelatedJxtaJini Web Services For More InfoFrom P2P to Web Services and Grids: Peers in a Client/Server WorldIan J. Taylor, 2004 Publisher: Springer ISBN: 1-85233-869-5 |
Jini TutorialThis is a simple Jini example that does a 'Hello World' type call on a remote machine using Jini. It consists of three files:
Batch FilesThis example is configured to run the client and the server on ONE machine. Although this is not distributed in the network sense the principles are exactly the same. You are welcome to reconfigure the code to insert an IP address of a remote machine if you want to run this across the network.
This is the setup.bat file on my local machine: set RUNTIME_JAR=c:\java\jdk1.4\jre\lib\rt.jar set JINIHOME=. set JINI_CLASSPATH=.;%RUNTIME_JAR%;%JINIHOME%\lib\jini-core.jar; %JINIHOME%\lib\jini-ext.jar;%JINIHOME%\lib\reggie.jar; %JINIHOME%\lib\reggie-dl.jar;%JINIHOME%\lib\tools.jar Therefore replace the RUNTIME_JAR file with the path of your JVM. Running the Jini Services:You must run 3 batch files BEFORE (in order) you run the actual java core. These are:
Running The Java Code
|