Copyright
Brief Table of Contents
Table of Contents
List of Figures
List of Tables
List of Listings
Preface
Acknowledgments
About this Book
1. Overview of the EJB landscape
Chapter 1. What’s what in EJB 3
1.1. EJB overview
1.1.1. EJB as a component
1.1.2. EJB as a framework
1.1.3. Layered architectures and EJB
1.1.4. Why choose EJB 3?
1.2. Understanding EJB types
1.2.1. Session beans
1.2.2. Message-driven beans
1.2.3. Entities and the Java Persistence API
1.3. Getting inside EJB
1.3.1. Accessing EJB services: the EJB container
1.3.2. Accessing JPA services: the persistence provider
1.3.3. Gaining functionality with EJB services
1.4. Renaissance of EJB
1.4.1. HelloUser Example
1.4.2. Simplified programming model
1.4.3. Annotations instead of deployment descriptors
1.4.4. Dependency injection vs. JNDI lookup
1.4.5. Simplified persistence API
1.4.6. Unit-testable POJO components
1.4.7. EJB 3 and Spring
1.5. Summary
Chapter 2. A first taste of EJB
2.1. New features: simplifying EJB
2.1.1. Replacing deployment descriptors with annotations
2.1.2. Introducing dependency injection
2.2. Introducing the ActionBazaar application
2.2.1. Starting with the architecture
2.2.2. An EJB 3–based solution
2.3. Building business logic with session beans
2.3.1. Using stateless beans
2.3.2. The stateless bean client
2.3.3. Using stateful beans
2.3.4. A stateful bean client
2.4. Messaging with message-driven beans