public interface ShoppingCart extends |
javax.ejb.EJBObject |
{ |
boolean addItem(int itemNumber) |
throws java.rmi.RemoteException; |
boolean purchase() |
throws java.rmi.RemoteException; |
} |
Define the interface to the methods that the clients can call. Note that methods must conform to RMI standards in that parameters must be Serializable and methods must throw rmi.RemoteException. But RMI is being extended to support IIOP protocol, and hence COM. |