1 package common;
2
3 import java.rmi.Remote;
4 import java.rmi.RemoteException;
5 import java.math.BigDecimal;
6 import org.jstk.example.bank.Exceptions;
7
8 public interface RemoteBank extends Remote {
9 public RemoteAccount openAccount(BigDecimal initialDeposit) throws RemoteException;
10 public void closeAccount(String acctNo) throws Exceptions.AccountNotFound,
11 Exceptions.AccountClosed, RemoteException;
12 public RemoteAccount getAccount(String acctNo) throws Exceptions.AccountNotFound, RemoteException;
13 public RemoteIterator accounts() throws RemoteException;
14}
15