Java Reference
In-Depth Information
private static void testRemoteEJB() throws
NamingException {
final TheatreInfo theatreInfo =
lookupTheatreInfoEJB();
final TheatreBooker theatreBook =
lookupTheatreBookerEJB();
try {
String retVal = theatreBook.bookSeat(5);
logger.info(retVal);
logger.info(theatreInfo.printSeatList().toString());
}
catch ( Exception e) {
logger.info(e.getMessage());
}
logger.info("Press [Enter] to continue");
// Await for key press. Not included for
brevity
pressAKey();
try {
String retVal = theatreBook.bookSeat(7);
logger.info(retVal);
logger.info(theatreInfo.printSeatList().toString());
}
catch ( Exception e) {
logger.info(e.getMessage());
}
}
Search WWH ::




Custom Search