Commit | Line | Data |
---|---|---|
70d0d0e1 JB |
1 | package exemples.javarmi.hello; |
2 | import java.rmi.RemoteException; | |
3 | import java.rmi.server.UnicastRemoteObject; | |
4 | ||
5 | public 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 | } |