O'Reilly logo

Applied Enterprise JavaBeans™ Technology by Kevin Boone

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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() ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required