1 51 52 package org.objectweb.jass.examples.travelagency.ejbs; 53 54 import org.objectweb.jass.examples.travelagency.exceptions.DBException; 55 import org 56 .objectweb 57 .jass 58 .examples 59 .travelagency 60 .exceptions 61 .NotEnoughSeatsException; 62 63 import javax.ejb.EJBObject ; 64 import java.rmi.RemoteException ; 65 66 71 public interface Airline extends EJBObject { 72 public int getFreeSeats() throws RemoteException , DBException; 73 public int reserveSeats(int nSeats) 74 throws RemoteException , NotEnoughSeatsException, DBException; 75 public int unreserveSeats(int nSeats) throws RemoteException , DBException; 76 } 77 | Popular Tags |