1 2 package test.ejb;3 4 import test.interfaces.Account;5 6 import javax.ejb.*;7 8 public class BaseTellerBean {9 /**10 * Deposit account.11 *12 * @ejb.interface-method view-type="remote"13 */14 public void deposit(Account account, float amount) {15 try {16 account.deposit(amount);17 }18 catch (java.rmi.RemoteException e) {19 throw new EJBException(e);20 }21 }22 }