This is a crash course in the EJB architecture and API. The course starts with an overview of EJB at a relatively high-level; it then delves into the details of session beans (stateless and stateful), entity beans (CMP and BMP), transaction control, and finishes with a discussion of design tips. At the end of the course, attendees should be ready to code simple EJBs and to explore more advanced topics such as how entity beans relate to O/R mapping tools.
Target audience: Architects and programmers who are unfamiliar with EJB. A good understanding of Java is assumed. Familiarity with distributed programming is highly recommended.
What attendees will learn: Attendees will learn the fundamentals of the EJB API and architecture.
Tutorial outline:
- Introduction
- Overview of how EJB fits into J2EE
- High-level EJB architecture
- Roles within EJB
- Client view of an EJB
- Session Bean Architecture and API
- Stateless Session Beans
- Stateful Session Beans
- Passivation and activation
- Session Synchronization interface
- Deployment
- Overview
- Deployment descriptor in EJB 1.0 (ser file)
- Deployment descriptor in EJB 1.1 (XML file)
- Deployment to an EJB server
- EJBs and Transactions
- 5. Entity Bean Architecture and API
- CMP Entity Beans
- BMP Entity Beans
- Design Tips