1 | public interface ShoppingCart extends |
2 | javax.ejb.EJBObject |
3 | { |
4 | boolean addItem(int itemNumber) |
5 | throws java.rmi.RemoteException; |
6 | boolean purchase() |
7 | throws java.rmi.RemoteException; |
8 | } |
9 | 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. |