Basic HTML version of Foils prepared May 19 99

Foil 17 Remote Interface

From Enterprise Javabeans Basic Information Track Computational Science Course CPS616 -- Spring Semester 1999. by Nancy McCracken


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.



© Northeast Parallel Architectures Center, Syracuse University, npac@npac.syr.edu

If you have any comments about this server, send e-mail to webmaster@npac.syr.edu.

Page produced by wwwfoil on Mon Jul 5 1999