O'Reilly logo

J2EE™ and Beyond: Design, Develop, and Deploy World-Class Java™ Software by Art Taylor

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

Summary

This chapter provided examples of a number of different EJBs. The session bean, the entity bean, and the message-driven bean were all explained with programming examples.

We saw how a session bean can be used to implement a session facade pattern—an object which is responsible for controlling access to other objects. An how an entity bean is used to encapsulate access to data resources. We demonstrated the use of a DAO with an entity bean, allowing the lower level details of data access to be managed by the DAO and allowing the entity bean to provide transactional and life cycle services through the EJB container.

MDBs allow the J2EE application server to provide messaging services in the context of an EJB. As we saw in this chapter, ...

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