1 package dynaop.remote; 2 3 import java.rmi.RemoteException ; 4 5 10 public class MyServiceImpl implements MyService { 11 12 public String toUpperCase(String s) throws RemoteException { 13 return s.toUpperCase(); 14 } 15 16 public int add(int a, int b) { 17 return a + b; 18 } 19 20 public void throwException() throws MyException { 21 throw new MyException(); 22 } 23 } 24 | Popular Tags |