EJB 3 Developer Guide Table of Contents

Back to BOOK PAGE

Table of Contents

Preface
Chapter 1: Introduction to the EJB 3 Architecture
Chapter 2: Session Beans
Chapter 3: Entities
Chapter 4: Object/Relational Mapping
Chapter 5: The Java Persistence Query Language
Chapter 6: Entity Manager
Chapter 7: Transactions
Chapter 8: Messaging
Chapter 9: EJB Timer Service
Chapter 10: Interceptors
Chapter 11: Implementing EJB 3 Web Services
Chapter 12: EJB 3 Security
Appendix A: Annotations and Their Corresponding Packages
Index

  • Chapter 1: Introduction to the EJB 3 Architecture
    • Introduction to the Java EE Architecture
    • The EJB 3 Architecture
      • EJB Container Services
      • The JPA Persistence Engine
      • EJB 3 Compared with Earlier Versions
    • Getting Started
      • Installing GlassFish
      • Testing the Installation
      • Accessing the Administrator Console
      • Shutting Down GlassFish
      • Downloading Example Source Code
    • Summary
  • Chapter 2: Session Beans
    • Introduction
    • Stateless Session Beans
      • Annotations
      • Creating a Session Bean Client
      • Running the Example
      • The Program Directory Structure
      • The Ant Build Script
      • The Application Client Container
        • Building the Application
      • Stateless Session Bean's LifeCycle
    • Stateful Session Beans
      • Stateful Session Bean's LifeCycle
    • Local Interfaces
    • Summary
  • Chapter 3: Entities
    • Introduction
    • EJB 3 Entities
      • Comparison with EJB 2.x Entity Beans
      • Mapping an Entity to a Database Table
    • Introducing the EntityManager
    • Packaging and Deploying Entities
      • The Program Directory Structure
      • Building the Application
    • Field-Based Annotations
    • Generating Primary Keys
      • Table Strategy
      • Sequence Strategy
      • Identity Strategy
      • Auto Strategy
    • Overriding Metadata Defaults
    • Summary
  • Chapter 4: Object/Relational Mapping
    • O/R Mapping Default Behavior
      • A Banking Example Application
        • Customer Entity
        • Account Entity
        • Address Entity
        • Referee Entity
      • Testing the Application
    • O/R Mapping Overriding Defaults
      • Customer Entity
      • Account Entity
      • Address Entity
      • BankServiceBean
    • O/R Mapping Additional Annotations
      • Referee Class
      • BankServiceBean
      • Composite Primary Keys
    • O/R Inheritance Mapping
      • SINGLE_TABLE Strategy
      • JOINED Strategy
      • Table per Concrete Class Strategy
    • Summary
  • Chapter 5: The Java Persistence Query Language
    • Introduction
    • Simple Queries
    • Projection
    • Conditional Expressions
    • Aggregate Functions
      • GROUP BY
      • HAVING
    • Queries with Relationships
    • Joins
      • Inner Joins
      • Outer Joins
      • Fetch Joins
    • Collection Comparison Expressions
    • Constructor Expressions
    • SubQueries
    • Functions
      • CONCAT
      • SUBSTRING
      • TRIM
      • LOWER and UPPER
      • LENGTH
      • LOCATE
      • ABS
      • SQRT
      • MOD
      • SIZE
    • Queries with Parameters
      • Positional Parameters
      • Named Parameters
    • Named Queries
    • Handling Date and Time
      • @Temporal annotation
      • Queries with Date Parameters
      • Datetime Functions
    • Bulk Update and Delete
    • Native SQL
    • Summary
  • Chapter 6: Entity Manager
    • Application-managed Entity Manager
    • Entity Manager Merge
    • Entity Manager Methods
      • remove()
      • contains()
      • flush()
      • setFlushMode()
      • refresh()
      • clear()
    • Cascade Operations
      • persist
      • remove
      • merge
      • refresh
      • all
    • Extended Persistence Context
    • Entity LifeCycle Callback Methods
      • Entity Listeners
    • Summary
  • Chapter 7: Transactions
    • Introduction
    • Container-Managed Transaction Demarcation
      • SUPPORTS
      • NOT_SUPPORTED
      • REQUIRED
      • REQUIRES_NEW
      • MANDATORY
      • Never
    • Examples of Transaction Attributes
      • REQUIRED Example
      • REQUIRES_NEW Example
      • NOT_SUPPORTED Example
      • SUPPORTS Example
      • MANDATORY Example
      • NEVER Example
    • Controlling Container Managed Transactions
      • SessionSynchronization Interface
      • Doomed Transactions
    • Concurrency and Database Locking
      • Isolation Levels
      • Lost Update Problem
      • Versioning
      • Read and Write Locking
    • UserTransaction Interface
    • Summary
  • Chapter 8: Messaging
    • Introduction
    • Java Message Service (JMS) API
    • Queue Producer and Consumer Examples
      • Synchronous Queue Consumer Example
        • Running the Queue Producer and Synchronous Queue Consumer Examples
      • An Asynchronous Queue Consumer Example
        • Running the Asynchronous Queue Consumer Example
    • Topic Producer and Consumer Examples
      • Synchronous Topic Consumer Example
        • Running the Topic Producer and Synchronous Topic Consumer Examples
      • An Asynchronous Topic Consumer Example
        • Running the Asynchronous Topic Consumer Example
    • Motivation for Message-Driven Beans
    • A Simple Message-Driven Bean Example
      • A Session Bean Queue Producer
      • A Message-Driven Bean Queue Consumer
    • MDB Activation Configuration Properties
      • acknowledgeMode
      • subscriptionDurability
      • messageSelector
    • MessageDrivenContext
    • MDB LifeCycle
    • MDB Example Revisited
    • Sending Message Confirmation to a Client
    • MDBs and Transactions
    • Summary
  • Chapter 9: EJB Timer Service
    • Introduction
    • Timer Service Examples
      • A Single Event Example
      • An Interval Event Example
    • A Timer Interface Example
    • Timers and Transactions
    • Summary
  • Chapter 10: Interceptors
    • Interceptor Methods
    • Interceptor Classes
    • Default Interceptors
    • Interceptor Communication
    • Summary
  • Chapter 11: Implementing EJB 3 Web Services
    • Overview of Web Service Concepts
      • The SOAP Protocol
      • The WSDL Standard
      • The UDDI Standard
      • SOA and Web Services
    • Creating a Java Application Web Service
      • Creating an Endpoint Implementation Interface
      • The WSDL Document
        • The <portType> Element
        • The <binding> Element
        • The <service> Element
        • The <message> and <types> Elements
      • The GlassFish WSGEN Tool
      • Deploying a Java Application as a Web Service
      • The GlassFish Admin Console Test Harness
      • Creating a Java Web Service Client
    • Overriding JAX-WS Annotation Defaults
    • Deploying an EJB Session Bean as a Web Service
      • Packaging an EJB Web Service
      • Creating an EJB Web Service Client
    • Summary
  • Chapter 12: EJB 3 Security
    • Java EE Container Security
    • Authentication
      • GlassFish Authentication
      • Mapping Roles to Groups
      • Authenticating an EJB Application Client
    • EJB Authorization
      • Declarative Authorization
        • Denying Authorization
        • EJB Security Propagation
      • Programmatic Authorization
    • Java EE Web Container Security
      • Web-Tier Authorization
      • Transport Layer Security
      • Web-Tier Authentication
      • Example of Web-Tier Authentication and Authorization
    • Summary

Back to BOOK PAGE

Book backreference: 
Code Download and Errata
Packt Anytime, Anywhere
Register Books
Print Upgrades
eBook Downloads
Video Support
Contact Us
Awards Voting Nominations Previous Winners
Judges Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software
Resources
Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software