Learn how to code, package, deploy, and test functional Enterprise JavaBeans with the latest edition of this bestselling guide. Written by the developers of JBoss EJB 3.1, this book not only brings you up to speed on each component type and container service in this implementation, it also provides a workbook with several hands-on examples to help you gain immediate experience with these components.
With version 3.1, EJB's server-side component model for building distributed business applications is simpler than ever. But it's still a complex technology that requires study and lots of practice to master. Enterprise JavaBeans 3.1 is the most complete reference on this specification. You'll find a straightforward, no-nonsense explanation of the underlying technology, including Java classes and interfaces, the component model, and the runtime behavior of EJB.
* Develop your first EJBs with a hands-on walkthrough of EJB 3.1 concepts
* Learn how to encapsulate business logic with Session Beans and Message-Driven Beans
* Discover how to handle persistence through Entity Beans, the EntityManager, and the Java Persistence API
* Understand EJB's container services such as dependency injection, concurrency, and interceptors
* Integrate EJB with other technologies in the Java Enterprise Edition platform
* Use examples with either the JBossAS, OpenEJB, or GlassFish v3 EJB Containers
Inhaltsverzeichnis
Preface
Why Enterprise JavaBeans?
Chapter 1: Introduction
Chapter 2: Component Types
Chapter 3: Container Services
Chapter 4: Developing Your First EJBs
Server-Side Component Models
Chapter 5: The Stateless Session Bean
Chapter 6: The Stateful Session Bean
Chapter 7: The Singleton Session Bean
Chapter 8: Message-Driven Beans
EJB and Persistence
Chapter 9: Persistence: EntityManager
Chapter 10: Mapping Persistent Objects
Chapter 11: Entity Relationships
Chapter 12: Entity Inheritance
Chapter 13: Queries, the Criteria API, and JPA QL
Chapter 14: Entity Callbacks and Listeners
Container Services
Chapter 15: Security
Chapter 16: JNDI, the ENC, and Injection
Chapter 17: Transactions
Chapter 18: Interceptors
Chapter 19: Timer Service
Chapter 20: EJB 3.1: Web Services Standards
Chapter 21: EJB 3.1 and Web Services
Examples
FirstEJB Example
Stateless Session EJB: Encryption Example
Stateful Session EJB: FTP Client Example
Singleton Session EJB: RSS Cache Example
Message-Driven EJB: Status Update Listeners Example
Java Persistence APIs: Employee Registry Example
Security: Secured School Example
Transactions: Blackjack Game Example
Interceptors: TV Channel Service Example
Timer Service: Credit Card Processor Example
Colophon