TD3: Add code skeleton for the hostel reservations though RMI.
[TD_SR.git] / TD3 / exemples / javarmi / hello / HelloImpl.java
CommitLineData
70d0d0e1
JB
1package exemples.javarmi.hello;
2import java.rmi.RemoteException;
3import java.rmi.server.UnicastRemoteObject;
4
5public class HelloImpl extends UnicastRemoteObject implements HelloInterface {
6 private static final long serialVersionUID = 6586708515447619453L;
7 private String message;
8
9 public HelloImpl(String s) throws RemoteException {
10 message = s;
11 }
12 public String sayHello() throws RemoteException {
13 return message;
14 }
15}