Titan's Maintenance Timer
Titan Cruises has a policy of performing regular maintenance on its ships. For example, the engines require extensive and varied maintenance activities throughout the year, as do navigation equipment, communications, sewer and water systems, etc. In fact, there are literally thousands of maintenance functions to be performed on a ship
throughout the year. To manage all of these items, Titan uses the EJB Timer Service to alert the proper maintenance crews when an item needs to be serviced. In this chapter, we modify the Ship Maintenance EJB to manage its own maintenance schedule. Titan's Health and Safety Department can use business methods on the Ship Maintenance EJB to schedule and cancel maintenance items, and the Ship Maintenance EJB will take care of alerting the correct maintenance crew when an item needs to be serviced.
 |