1 15 package hivemind.test.lib.impl; 16 17 import hivemind.test.lib.SimpleHome; 18 import hivemind.test.lib.SimpleRemote; 19 20 import java.rmi.RemoteException ; 21 22 import javax.ejb.EJBMetaData ; 23 import javax.ejb.Handle ; 24 import javax.ejb.HomeHandle ; 25 import javax.ejb.RemoveException ; 26 27 32 public class SimpleHomeImpl implements SimpleHome 33 { 34 private boolean _forceError; 35 36 private SimpleRemote _object = new SimpleEJB(); 37 38 public SimpleRemote create() throws RemoteException 39 { 40 if (_forceError) 41 throw new RemoteException ("Forced error."); 42 43 return _object; 44 } 45 46 public EJBMetaData getEJBMetaData() throws RemoteException 47 { 48 return null; 49 } 50 51 public HomeHandle getHomeHandle() throws RemoteException 52 { 53 return null; 54 } 55 56 public void remove(Object arg0) throws RemoteException , RemoveException 57 { 58 59 } 60 61 public void remove(Handle arg0) throws RemoteException , RemoveException 62 { 63 64 } 65 66 public boolean isForceError() 67 { 68 return _forceError; 69 } 70 71 public void setForceError(boolean b) 72 { 73 _forceError = b; 74 } 75 76 } 77 | Popular Tags |