Listing 1
public interface TradingSystemInterface extends Remote
{
// From C++ Trading System (ITradeStock interface)
public String GetQuote(String stock)
throws RemoteException;
public String Buy(String stock, int shares)
throws RemoteException;
public String Sell(String stock, int shares)
throws RemoteException;
// From C++ Portfolio Manager library
public String AddHolding(String stock, int shares)
throws RemoteException;
public String RemoveHolding(String stock, int shares)
throws RemoteException;
public String EnumHoldings()
throws RemoteException;
public String GetPosition(String stock)
throws RemoteException;
}