https://github.com/iulianoroberto/javarmi_objectpassing
Simple RMI distributed application used to implement a print service with object passing, client/server architecture.
https://github.com/iulianoroberto/javarmi_objectpassing
distributed distributed-systems java rmi rmic rmiregistry
Last synced: 3 months ago
JSON representation
Simple RMI distributed application used to implement a print service with object passing, client/server architecture.
- Host: GitHub
- URL: https://github.com/iulianoroberto/javarmi_objectpassing
- Owner: iulianoroberto
- Created: 2024-01-08T08:58:10.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-01-08T09:07:57.000Z (over 1 year ago)
- Last Synced: 2025-01-24T12:12:28.774Z (5 months ago)
- Topics: distributed, distributed-systems, java, rmi, rmic, rmiregistry
- Language: Java
- Homepage:
- Size: 25.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Java_RMI_object_passing
Implement a type of remote object (PrintService) that exposes a method to the *PrintService* interface to remotely print (on the standard output) the content of a *Person* object passed as an argument to the *print()* method. The Person class should have the *firstName*, *lastName*, and *age* instance variables, the related constructors, and get and set methods. Implement a variant of the client that sends an instance of Person to the server by invoking the *print()* method.
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*** (you don't close the console).
- (From new console) Start server by ***java PrintServiceServer*** (you don't close the console).
- (From new console) Start client by ***java PrintServiceClient***.