1 7 8 package test.wsdl.oneway; 9 10 import java.rmi.RemoteException ; 11 import java.util.Hashtable ; 12 13 public class OnewayImpl implements Oneway { 14 private Hashtable ht = new Hashtable (); 15 16 public void addEntry(String name, Address address) throws RemoteException { 17 ht.put(name, address); 18 } 19 20 public Address getAddressFromName(String name) throws RemoteException { 21 return (Address) ht.get(name); 22 } 23 24 public void throwException() throws RemoteException { 25 throw new RemoteException ("OnewayImpl throws RemoteException"); 26 } 27 28 } 29 | Popular Tags |