EJB 3 Developer Guide

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

EJB 3 Developer Guide

Michael Sikora

1 customer reviews
Enterprise JavaBean 3 - a Practical Book and eBook Guide for developers and architects using the EJB Standard.
Mapt Subscription
FREE
$29.99/m after trial
eBook
$16.80
RRP $23.99
Save 29%
Print + eBook
$39.99
RRP $39.99
What do I get with a Mapt Pro subscription?
  • Unlimited access to all Packt’s 5,000+ eBooks and Videos
  • Early Access content, Progress Tracking, and Assessments
  • 1 Free eBook or Video to download and keep every month after trial
What do I get with an eBook?
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with Print & eBook?
  • Get a paperback copy of the book delivered to you
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with a Video?
  • Download this Video course in MP4 format
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
$0.00
$16.80
$39.99
$29.99 p/m after trial
RRP $23.99
RRP $39.99
Subscription
eBook
Print + eBook
Start 14 Day Trial

Frequently bought together


EJB 3 Developer Guide Book Cover
EJB 3 Developer Guide
$ 23.99
$ 16.80
EJB 3.1 Cookbook Book Cover
EJB 3.1 Cookbook
$ 32.99
$ 23.10
Buy 2 for $34.30
Save $22.68
Add to Cart

Book Details

ISBN 139781847195609
Paperback276 pages

Book Description


Table of Contents

Chapter 1: Introduction to the EJB 3 Architecture
Introduction to the Java EE Architecture
The EJB 3 Architecture
Getting Started
Summary
Chapter 2: Session Beans
Introduction
Stateless Session Beans
Stateful Session Beans
Local Interfaces
Summary
Chapter 3: Entities
Introduction
EJB 3 Entities
Introducing the EntityManager
Packaging and Deploying Entities
Field-Based Annotations
Generating Primary Keys
Overriding Metadata Defaults
Summary
Chapter 4: Object/Relational Mapping
O/R Mapping Default Behavior
O/R Mapping Overriding Defaults
O/R Mapping Additional Annotations
O/R Inheritance Mapping
Summary
Chapter 5: The Java Persistence Query Language
Introduction
Simple Queries
Projection
Conditional Expressions
Aggregate Functions
Queries with Relationships
Joins
Collection Comparison Expressions
Constructor Expressions
SubQueries
Functions
Queries with Parameters
Named Queries
Handling Date and Time
Bulk Update and Delete
Native SQL
Summary
Chapter 6: Entity Manager
Application-managed Entity Manager
Entity Manager Merge
Entity Manager Methods
Cascade Operations
Extended Persistence Context
Entity LifeCycle Callback Methods
Summary
Chapter 7: Transactions
Introduction
Container-Managed Transaction Demarcation
Examples of Transaction Attributes
Controlling Container Managed Transactions
Concurrency and Database Locking
UserTransaction Interface
Summary
Chapter 8: Messaging
Introduction
Java Message Service (JMS) API
Queue Producer and Consumer Examples
Topic Producer and Consumer Examples
Motivation for Message-Driven Beans
A Simple Message-Driven Bean Example
MDB Activation Configuration Properties
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 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
Creating a Java Application Web Service
Overriding JAX-WS Annotation Defaults
Deploying an EJB Session Bean as a Web Service
Summary
Chapter 12: EJB 3 Security
Java EE Container Security
Authentication
EJB Authorization
Java EE Web Container Security
Summary

What You Will Learn

This book will teach you the core elements of EJB 3 technology. You will:

  • Gain a rapid introduction to the EJB 3 essentials while learning about the underlying principles
  • Create Entities, Message-Driven Beans, Session Beans and their clients
  • Look at running an EJB client from an application client container
  • Learn how to package and deploy an EJB
  • Use JQPL (Java Persistence Query Language)
  • Explore the entity manager interface
  • Learn about object/relational mapping with EJB 3
  • Look at the Java Messaging API and message-driven beans
  • Look at transactions, interceptors, and EJB timer services
  • Understand how EJB 3 differs from the 2.x version
  • Implement EJB 3's security features

Authors

Table of Contents

Chapter 1: Introduction to the EJB 3 Architecture
Introduction to the Java EE Architecture
The EJB 3 Architecture
Getting Started
Summary
Chapter 2: Session Beans
Introduction
Stateless Session Beans
Stateful Session Beans
Local Interfaces
Summary
Chapter 3: Entities
Introduction
EJB 3 Entities
Introducing the EntityManager
Packaging and Deploying Entities
Field-Based Annotations
Generating Primary Keys
Overriding Metadata Defaults
Summary
Chapter 4: Object/Relational Mapping
O/R Mapping Default Behavior
O/R Mapping Overriding Defaults
O/R Mapping Additional Annotations
O/R Inheritance Mapping
Summary
Chapter 5: The Java Persistence Query Language
Introduction
Simple Queries
Projection
Conditional Expressions
Aggregate Functions
Queries with Relationships
Joins
Collection Comparison Expressions
Constructor Expressions
SubQueries
Functions
Queries with Parameters
Named Queries
Handling Date and Time
Bulk Update and Delete
Native SQL
Summary
Chapter 6: Entity Manager
Application-managed Entity Manager
Entity Manager Merge
Entity Manager Methods
Cascade Operations
Extended Persistence Context
Entity LifeCycle Callback Methods
Summary
Chapter 7: Transactions
Introduction
Container-Managed Transaction Demarcation
Examples of Transaction Attributes
Controlling Container Managed Transactions
Concurrency and Database Locking
UserTransaction Interface
Summary
Chapter 8: Messaging
Introduction
Java Message Service (JMS) API
Queue Producer and Consumer Examples
Topic Producer and Consumer Examples
Motivation for Message-Driven Beans
A Simple Message-Driven Bean Example
MDB Activation Configuration Properties
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 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
Creating a Java Application Web Service
Overriding JAX-WS Annotation Defaults
Deploying an EJB Session Bean as a Web Service
Summary
Chapter 12: EJB 3 Security
Java EE Container Security
Authentication
EJB Authorization
Java EE Web Container Security
Summary

Book Details

ISBN 139781847195609
Paperback276 pages
Read More
From 1 reviews

Read More Reviews

Recommended for You

EJB 3.1 Cookbook Book Cover
EJB 3.1 Cookbook
$ 32.99
$ 23.10
PHP Application Development with NetBeans: Beginner's Guide Book Cover
PHP Application Development with NetBeans: Beginner's Guide
$ 26.99
$ 18.90
Spring Data Book Cover
Spring Data
$ 17.99
$ 12.60
.NET 4.5 Parallel Extensions Cookbook Book Cover
.NET 4.5 Parallel Extensions Cookbook
$ 29.99
$ 21.00
Learning Adobe Edge Animate Book Cover
Learning Adobe Edge Animate
$ 26.99
$ 18.90
Java 7 JAX-WS Web Services Book Cover
Java 7 JAX-WS Web Services
$ 9.99
$ 7.00