View Javadoc
1   package info.ejava.examples.ejb.ejbjpa.ejb;
2   
3   import java.util.List;
4   
5   import info.ejava.examples.ejb.ejbjpa.bl.RoomUnavailableExcepton;
6   import info.ejava.examples.ejb.ejbjpa.bo.Guest;
7   
8   import javax.ejb.Remote;
9   
10  @Remote
11  public interface ReservationRemote {
12  
13      int addGuest(Guest guest);
14  
15      List<Guest> reserveRooms() throws RoomUnavailableExcepton;
16  
17      List<Guest> reserveRoomsPessimistic() throws RoomUnavailableExcepton;
18  
19  }