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


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.

in Table To:


© 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