package ejava.transactions.demo;

import javax.ejb.EJBObject;
import java.rmi.RemoteException;

public interface TellerRemote extends EJBObject { 
   /** this method is an example of a method that won't fail */
   void reset(AccountRemote account) 
      throws RemoteException, AccountException;

   /** this method will get rolled back if there is an overdraw */
   void transfer(
      AccountRemote fromAccount, AccountRemote toAccount, float amount) 
      throws RemoteException, AccountException;
}
