If you're up on the latest Java technologies, then you know that Enterprise JavaBeans (EJB) 3.0 is the hottest news in Java this year. In fact, EJB 3.0 is being hailed as the new standard of server-side business logic programming. And O'Reilly's award-winning book on EJB has been refreshed just in time to capitalize on the technology's latest rise in popularity.
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 strong-selling editions. Bill Burke, Chief Architect at JBoss, Inc., represents the company on the EJB 3.0 and Java EE 5 specification committees. Richard Monson-Haefel is one of the world's leading experts on Enterprise Java.
Enterprise JavaBeans 3.0, 5th Edition is organized into two parts: the technical manuscript followed by the JBoss workbook. The technical manuscript explains what EJB is, how it works, and when to use it. The JBoss workbook provides step-by-step instructions for installing, configuring, and running the examples from the manuscript on the JBoss 4.0 Application Server.
Although EJB makes application development much simpler, it's still a complex and ambitious technology that requires a great deal of time to study and master. But now, thanks to Enterprise JavaBeans 3.0, 5th Edition, you can overcome the complexities of EJBs and learn from hundreds of practical examples that are largeenough to test key concepts but small enough to be taken apart and explained in the detail that you need. Now you can harness the complexity of EJB with just a single resource by your side.
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
Richard Monson-Haefel , an independent software developer, coauthored all five editions of Enterprise JavaBeans and Java Message Service (all O'Reilly). He's a software architect specializing in multi-touch interfaces and a leading expert on enterprise computing. More detail on his work and writings can be found at Monson-Haefel.
Bill Burke is a Fellow at the JBoss division of REd Hat Inc. A long time JBoss contributor and architect, his current project is RESTEasy, RESTful Web Services for Java.
Comments about oreilly Enterprise JavaBeans 3.0, Fifth Edition:
The book provides a very interesting overview of the EJB 3.0 specification. It covers all corners of it going from the basic parts to the more complex ones.Session and Message-driven beans are very well explained, as well as Entity beans and all its mappings to the relational model. The book also covers other services provided by the container: concurrency, transactions, naming, security, timer service. The last theorical chapters include an overview of Java EE, and an explanation about how to desing a real EJB-based system with a discussion of its pros and cons and recommending other alternatives when the technology is not suitable for solving our problems. The book also includes a practical part which is JBoss specific with working examples you can download from the web.As a negative thing, there are many little errors in the code samples along the whole book. They are not relevant, but they are so annoying.In conclusion, I recommend this book as a great reference of the EJB 3.0 specification.[...]
1/28/2009
(2 of 9 customers found this review helpful)
2.0
an easy read but buggy
By Anonymous
from Undisclosed
Comments about oreilly Enterprise JavaBeans 3.0, Fifth Edition:
Started to read it, and it is quite fluent
however, once I tried to perform exercise 1, both URLs for Jboss download and sample code download dont work.
heck of a start...
11/5/2008
(3 of 3 customers found this review helpful)
3.0
Good. But no. of typos are unacceptable
By Srikanth Pragada
from Undisclosed
Comments about oreilly Enterprise JavaBeans 3.0, Fifth Edition:
Hello,
I have taken this book because I was interested in SCBCD 5.0. Many recommended this in JavaRanch.com.
Book is well organized. Reading from start to finish is what I feel is better.
Considering the number of silly and some major mistakes that took place in the book, I am of the opinion, they hurred the book printing.
I wish they had taken more care to eliminate the errors.
Especially for someone preparing for SCBCD 5.0, a mistake like incorrect Exception name for instance could mean a lot.
Srikanth Pragada.
8/27/2008
(1 of 3 customers found this review helpful)
2.0
Good book but buggy!!
By Anonymous
from Undisclosed
Comments about oreilly Enterprise JavaBeans 3.0, Fifth Edition:
It seems that the book has not been carefully checked for errors
5/18/2007
(2 of 2 customers found this review helpful)
4.0
Non-expert Point of view
By Felix I.U.
from Undisclosed
Comments about oreilly Enterprise JavaBeans 3.0, Fifth Edition:
This book gives an in-dept analysis of the state of Enterprise JavaBeans today. It delves into the mechanics of EJB and how all the components fit together. Its treatment of JPA is amazing. It also delves a bit into JBOSS implementation of the Specification. It is a wonderful book towering above its peers.
My only disappointment is with the treatment of the exercises. They are a bit too rigid and robotic. There was no attempt to vary the way clients access the Beans. The exclusive use of Ant build file to do all the packaging, deployment and running of the client is not helpful to those who use other build tools. Packaging is a critical area in EJB development that required more attention than was given to it in this book.
All-in-all if you are serious about EJB's, then this book is a must-have.