Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 

2.6.2. Overview of the booking example

The project structure is identical to the previous one, to install and deploy this application, please refer to Section 2.1, “Try the examples”. Once you've successfully started the application, you can access it by pointing your browser to https://localhost:8080/seam-booking/
Just nine classes (plus six session beans local interfaces) where used to implement this application. Six session bean action listeners contain all the business logic for the listed features.
  • BookingListAction retrieves existing bookings for the currently logged in user.
  • ChangePasswordAction updates the password of the currently logged in user.
  • HotelBookingAction implements the core functionality of the application: hotel room searching, selection, booking and booking confirmation. This functionality is implemented as a conversation , so this is the most interesting class in the application.
  • RegisterAction registers a new system user.
Three entity beans implement the application's persistent domain model.
  • Hotel is an entity bean that represents a hotel
  • Booking is an entity bean that represents an existing booking
  • User is an entity bean to represents a user who can make hotel bookings

 
 
  Published under the terms of the Open Publication License Design by Interspire