Description
This fifth edition, written by Bill Burke and Richard Monson-Haefel, has been updated to capture the very latest need-to-know Java technologies in the same award-winning fashion that drove the success of the previous four editions. Its easy-to-follow style and hundreds of practical examples help you simplify the complex world of EJB - without the costly trial and error.
Table of Contents
-
The EJB 3.0 Standard
-
Chapter 1 Introduction
- Server-Side Components
- Persistence and Entity Beans
- Asynchronous Messaging
- Web Services
- Titan Cruises: An Imaginary Business
- What's Next?
-
Chapter 2 Architectural Overview
- The Entity Bean
- The Enterprise Bean Component
- Using Enterprise and Entity Beans
- The Bean-Container Contract
- Summary
-
Chapter 3 Resource Management and Primary Services
- Resource Management
- Primary Services
- What's Next?
-
Chapter 4 Developing Your First Beans
- Developing an Entity Bean
- Developing a Session Bean
-
Chapter 5 Persistence: EntityManager
- Entities Are POJOs
- Managed Versus Unmanaged Entities
- Packaging a Persistence Unit
- Obtaining an EntityManager
- Interacting with an EntityManager
- Resource Local Transactions
-
Chapter 6 Mapping Persistent Objects
- The Programming Model
- Basic Relational Mapping
- Primary Keys
- Property Mappings
- Multitable Mappings with @SecondaryTable
- @Embedded Objects
-
Chapter 7 Entity Relationships
- The Seven Relationship Types
- Mapping Collection-Based Relationships
- Detached Entities and FetchType
- Cascading
-
Chapter 8 Entity Inheritance
- Single Table per Class Hierarchy
- Table per Concrete Class
- Table per Subclass
- Mixing Strategies
- Nonentity Base Classes
-
Chapter 9 Queries and EJB QL
- Query API
- EJB QL
- Native Queries
- Named Queries
-
Chapter 10 Entity Callbacks and Listeners
- Callback Events
- Callbacks on Entity Classes
- Entity Listeners
-
Chapter 11 Session Beans
- The Stateless Session Bean
- SessionContext
- The Life Cycle of a Stateless Session Bean
- The Stateful Session Bean
- The Life Cycle of a Stateful Session Bean
- Stateful Session Beans and Extended Persistence Contexts
- Nested Stateful Session Beans
-
Chapter 12 Message-Driven Beans
- JMS and Message-Driven Beans
- JMS-Based Message-Driven Beans
- The Life Cycle of a Message-Driven Bean
- Connector-Based Message-Driven Beans
- Message Linking
-
Chapter 13 Timer Service
- Titan's Maintenance Timer
- Timer Service API
- Transactions
- Stateless Session Bean Timers
- Message-Driven Bean Timers
- Final Words
-
Chapter 14 The JNDI ENC and Injection
- The JNDI ENC
- Reference and Injection Types
-
Chapter 15 Interceptors
- Intercepting Methods
- Interceptors and Injection
- Intercepting Life Cycle Events
- Exception Handling
- Interceptor Life Cycle
- Bean Class @AroundInvoke Methods
- Future Interceptor Improvements
-
Chapter 16 Transactions
- ACID Transactions
- Declarative Transaction Management
- Isolation and Database Locking
- Nontransactional EJBs
- Explicit Transaction Management
- Exceptions and Transactions
- Transactional Stateful Session Beans
- Conversational Persistence Contexts
-
Chapter 17 Security
- Authentication and Identity
- Authorization
- The RunAs Security Identity
- Programmatic Security
-
Chapter 18 EJB 3.0: Web Services Standards
- Web Services Overview
- XML Schema and XML Namespaces
- SOAP 1.1
- WSDL 1.1
- UDDI 2.0
- From Standards to Implementation
-
Chapter 19 EJB 3.0 and Web Services
- Accessing Web Services with JAX-RPC
- Defining a Web Service with JAX-RPC
- Using JAX-WS
- Other Annotations and APIs
-
Chapter 20 Java EE
- Servlets
- JavaServer Pages
- Web Components and EJB
- Filling in the Gaps
- Fitting the Pieces Together
-
Chapter 21 EJB Design in the Real World
- Predesign: Containers and Databases
- Design
- Should You Use EJBs?
- Wrapping Up
-
-
The JBoss Workbook
-
Chapter 22 Introduction
- Contents of the JBoss Workbook
-
Chapter WORKBOOK 1 JBoss Installation and Configuration
- About JBoss
- Installing the JBoss Application Server
- A Quick Look at JBoss Internals
- Exercise Code Setup and Configuration
-
Chapter WORKBOOK 2 Exercises for Chapter 4
- Exercise 4.1: Your First Beans with JBoss
- Exercise 4.2: JNDI Binding with Annotations
- Exercise 4.3: JNDI Binding with XML
-
Chapter WORKBOOK 3 Exercises for Chapter 5
- Exercise 5.1: Interacting with EntityManager
- Exercise 5.2: Standalone Persistence
-
Chapter WORKBOOK 4 Exercises for Chapter 6
- Exercise 6.1: Basic Property Mappings
- Exercise 6.2: @IdClass
- Exercise 6.3: @EmbeddedId
- Exercise 6.4: Multitable Mappings
- Exercise 6.5: Embeddable Classes
-
Chapter WORKBOOK 5 Exercises for Chapter 7
- Exercise 7.1: Cascading
- Exercise 7.2: Inverse Relationships
- Exercise 7.3: Lazy Initialization
-
Chapter WORKBOOK 6 Exercises for Chapter 8
- Exercise 8.1: Single Table per Hierarchy
- Exercise 8.2: Single Table per Hierarchy
- Exercise 8.3: JOINED Inheritance Strategy
-
Chapter WORKBOOK 7 Exercises for Chapter 9
- Exercise 9.1: Query and EJB QL Basics
-
Chapter WORKBOOK 8 Exercises for Chapter 10
- Exercise 10.1: Entity Callbacks
- Exercise 10.2: Entity Listeners
-
Chapter WORKBOOK 9 Exercises for Chapter 11
- Exercise 11.1: Stateless Session Bean
- Exercise 11.2: XML Override
- Exercise 11.3: Annotationless Stateless Session Bean
- Exercise 11.4: Stateful Session Bean
- Exercise 11.5: Annotationless Stateful Session Bean
-
Chapter WORKBOOK 10 Exercises for Chapter 12
- Exercise 12.1: The Message-Driven Bean
-
Chapter WORKBOOK 11 Exercises for Chapter 13
- Exercise 13.1: EJB Timer Service
-
Chapter WORKBOOK 12 Exercises for Chapter 15
- Exercise 15.1: EJB Interceptors
- Exercise 15.2: Intercepting EJB Callbacks
-
Chapter WORKBOOK 13 Exercises for Chapter 16
- Exercise 16.1: Conversational Persistence Contexts
-
Chapter WORKBOOK 14 Exercises for Chapter 17
- Exercise 17.1: Security
- Exercise 17.2: Securing Through XML
-
Chapter WORKBOOK 15 Exercises for Chapter 19
- Exercise 19.1: Exposing a Stateless Bean
- Exercise 19.2: Using a .NET Client
-
-
Appendix
-
Appendix JBoss Database Configuration
- Set Up the Database
- Examine the persistence.xml File
- Start Up JBoss
- Build and Deploy the Example Programs
- Examine and Run the Client Applications
-
-
Colophon
Product Details
- Title:
- Enterprise JavaBeans 3.0, Fifth Edition
- By:
- Richard Monson-Haefel, Bill Burke
- Publisher:
- O'Reilly Media
- Formats:
-
- Ebook
- Safari Books Online
- Print Release:
- May 2006
- Ebook Release:
- December 2008
- Pages:
- 768
- Print ISBN:
- 978-0-596-00978-6
- | ISBN 10:
- 0-596-00978-X
- Ebook ISBN:
- 978-0-596-15911-5
- | ISBN 10:
- 0-596-15911-0
Customer Reviews




