package ejava.examples.ejb.session.bean;

import ejava.examples.ejb.session.Account;
import ejava.examples.ejb.session.BankException;
import javax.ejb.EJBObject;
import java.rmi.RemoteException;

/**
* This interface defines the remote and only interface to the Teller Object.
*/
public interface TellerRemote extends EJBObject {
   Account getAccount(int accountId)
      throws BankException, RemoteException;
   void deposit(int accountId, double amount)
      throws BankException, RemoteException;
   void withdraw(int accountId, double amount)
      throws BankException, RemoteException;
   void transfer(int fromId, int toId, double amount)
      throws BankException, RemoteException;
}

