1 package test.ejb; 2 3 import test.interfaces.Account; 4 5 import javax.ejb.*; 6 7 66 public abstract class TellerBean extends BaseTellerBean implements SessionBean { 67 72 public void transfer(Account from, Account to, float amount) { 73 try { 74 from.withdraw(amount); 75 to.deposit(amount); 76 } 77 catch (java.rmi.RemoteException e) { 78 throw new EJBException(e); 79 } 80 } 81 82 84 public void ejbActivate() { 85 } 86 87 89 public void ejbPassivate() { 90 } 91 92 94 public void setSessionContext(SessionContext ctx) { 95 } 96 97 103 public void ejbRemove() { 104 } 105 106 } 107 | Popular Tags |