Skip to content

vikingandrobot/PRR_Labo_2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 

Repository files navigation

PRR Labo 2

The git repository for 2017 PRR course labo 2.

Use and start the project

Start the RMI registry

To start the RMI registry, you need to go to the target/classes folder created by the mvn clean install command and type

rmiregistry

in a terminal.

Start the Lamport application

The Lamport application exports a bunch of RMI interfaces. You need to start the jar by typing the following command from the maven project folder:

java -jar -Djava.rmi.server.codebase=file:<absolute path to the maven project>/target/classes/ target/lamport_application.jar <RMI registry address> <number of Lamport applications> <ID of the current application (starting at 0)>

See the Oracle documentation on RMI : Getting started using Java RMI

Start the User application

The user application only uses the RMI interfaces. You must execute it this way (from maven project folder):

java -jar target/user_application.jar <RMI registry address> <id of the Lamport application to use>

About

The git repository for 2017 PRR course labo 2.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages