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 .NotEnoughRoomsException; 62 63 import javax.ejb.EJBObject ; 64 import java.rmi.RemoteException ; 65 66 71 public interface Hotel extends EJBObject { 72 public int getFreeRooms() throws RemoteException , DBException; 73 public int reserveRooms(int nRooms) 74 throws RemoteException , NotEnoughRoomsException, DBException; 75 public int unreserveRooms(int nRooms) throws RemoteException , DBException; 76 } 77 | Popular Tags |