1 package test.crispy.example.service; 2 3 import java.rmi.Remote; 4 import java.rmi.RemoteException; 5 6 import test.crispy.example.model.Kunde; 7 import test.crispy.example.model.Primitive; 8 9 public interface RemoteEcho extends Remote { 10 11 public final static String LOOKUP_NAME = "Crispy_RemoteEcho"; 12 public static final String PING_STRING = "ping ..."; 13 14 public String ping() throws RemoteException; 15 16 public String echo(String pvEchoString) throws RemoteException ; 17 public Kunde renameKunde (Kunde pvKunde, String pvNewName) throws RemoteException ; 18 19 public Primitive echoPrimitive(Primitive pvPrimitive) throws RemoteException; 20 21 public String throwException (String pvMessage) throws RemoteException; 22 }