An open API service indexing awesome lists of open source software.

https://github.com/iulianoroberto/javarmi_printservice

Simple RMI distributed application used to implement a print service, client/server architecture.
https://github.com/iulianoroberto/javarmi_printservice

distributed distributed-systems java rmi rmic rmiregistry

Last synced: 3 months ago
JSON representation

Simple RMI distributed application used to implement a print service, client/server architecture.

Awesome Lists containing this project

README

        

# Java_RMI_printservice
Implement a type of remote object (*PrintService*) that exposes the method **void print(String s)**, which prints on the standard output of the server a string passed by the client at method invocation time. Instantiate an object of type *PrintService* in a server process and register it with the name *printservice*.
Implement a client that continuously reads lines from the standard input (until the character “.” is encountered) and sends them to the server, by invoking the method *print(…)* of the remote object hosted by the server.

![alt text](https://github.com/iulianoroberto/Java_RMI_printservice/blob/main/Images/Architecture.PNG)

Stub and Skeleton generated by rmic tool.

## How to run?
- Open console and go to files directory.
- Compile ***javac .java***.
- If you want you can generate Stub and Skeleton by ***rmic -keep -v1.1 PrintServiceImpl***.
- Run binder by ***rmiregistry*** (don't close console).
- (From new console) Start server by ***java PrintServiceServer***.
- (From new console) Start client by ***java PrintServiceClient***.