6.9. An example
Let’s look at a real example. [3] In the Prestige Bike Hire application, the EJB BookingManager handles all operations involving making, searching, and retrieving motorcycle bookings. Because it is intended to be used by a servlet client, it has only a remote client view (that is, no local interface or local home interface).
[3] The full source code is too long to list in its entirety in this chapter, and only important features will be highlighted. Full source code can be obtained from www.kevinboone.com/ejb_book.
So the Java entities to be provided are
Remote home interface | BookingManagerHome |
Remote interface | BookingManager |
Implementation class | BookingManagerBean |
Because many of the container callback methods (ejbActivate() ...
Get Applied Enterprise JavaBeans™ Technology now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.