Szczegóły ebooka

EJB 3 Developer Guide. Enterprise JavaBean 3 - a Practical Book and eBook Guide for developers and architects using the EJB Standard

EJB 3 Developer Guide. Enterprise JavaBean 3 - a Practical Book and eBook Guide for developers and architects using the EJB Standard

Michael Sikora

Ebook
  • EJB 3 Developer Guide
    • Table of Contents
    • EJB 3 Developer Guide
    • Credits
    • About the Author
    • About the Reviewers
    • Preface
      • What This Book Covers
      • What You Need for This Book
      • Who Is This Book For
      • Approach of this Book
      • Conventions
      • Reader Feedback
      • Customer Support
        • Downloading the Example Code for the Book
        • Errata
        • Questions
    • 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
    • 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 Beans LifeCycle
      • Stateful Session Beans
        • Stateful Session Bean's LifeCycle
      • Local Interfaces
      • Summary
    • 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
    • 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
    • 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
    • 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
    • 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
    • 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
    • 9. EJB Timer Service
      • Introduction
      • Timer Service Examples
        • A Single Event Example
        • An Interval Event Example
      • A Timer Interface Example
      • Timers and Transactions
      • Summary
    • 10. Interceptors
      • Interceptor Methods
      • Interceptor Classes
      • Default Interceptors
      • Interceptor Communication
      • Summary
    • 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
    • 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
    • A. Annotations and Their Corresponding Packages
    • Index
  • Tytuł: EJB 3 Developer Guide. Enterprise JavaBean 3 - a Practical Book and eBook Guide for developers and architects using the EJB Standard
  • Autor: Michael Sikora
  • Tytuł oryginału: EJB 3 Developer Guide. Enterprise JavaBean 3 - a Practical Book and eBook Guide for developers and architects using the EJB Standard.
  • ISBN: 9781847195616, 9781847195616
  • Data wydania: 2008-05-23
  • Format: Ebook
  • Identyfikator pozycji: e_3cff
  • Wydawca: Packt Publishing