Chapter 1.
This book is about Enterprise JavaBeans
3.0, the latest version of the Enterprise JavaBeans specification,
and its counterpart, the new Java Persistence specification. Just as the Java platform has revolutionized the way w...
Chapter 2. Architectural Overview
To use Enterprise JavaBeans and Java Persistence effectively, you need to understand their architectures. This chapter explores the core of the EJB and Java Persistence architectures: how enterprise beans...
Chapter 3. Resource Management and Primary Services
Chapter 2 discussed the basic architecture of Enterprise JavaBeans and Java Persistence, including the relationship between the bean class, the EJB container, and the EntityManager servi...
Chapter 4. Developing Your First Beans
The primary goal of the EJB 3.0 and Java Persistence specifications was to make it as easy as possible to write and deploy an EJB-based application. Creating an application is as easy as compiling yo...
Chapter 5. Persistence: EntityManager
Persistence is a key piece of the Java EE platform. In older versions of Java EE, the EJB specification was responsible for defining this layer. In Java EE 5, persistence
has been spun off into its...
Chapter 6. Mapping Persistent Objects
In this chapter, we'll take a thorough look at the process of developing entity beansspecifically, mapping them to a relational database. A good rule of thumb is that entity beans model business conce...
Chapter 7. Entity Relationships
Chapter 6 covered basic persistence mappings, including various ways to define primary keys as well as simple and complex property-type mappings. This chapter develops our Titan Cruises application a bit fu...
Chapter 8. Entity Inheritance
In order to be complete, an object to relational mapping engine must support inheritance
hierarchies. The Java Persistence specification supports entity inheritance,
polymorphic relationships/associations...
Chapter 9. Queries and EJB QL
Querying is a fundamental feature of all relational databases. It allows you to pull complex reports, calculations, and information about intricately related objects from persistence storage. Queries in Ja...
Chapter 10. Entity Callbacks and Listeners
When you execute EntityManager methods like persist( ), merge( ), remove( ), and find( ), or when you execute EJB QL queries, a predefined set of life cycle events are triggered. For instance, th...
Chapter 11. Session Beans
Entity beans provide an object-oriented model that makes it easier for developers to create, modify, and delete data from the database. They allow developers to be more productive by encouraging reuse, thus reduc...
Chapter 12. Message-Driven Beans
The message-driven bean was introduced in EJB 2.0 to support the processing of asynchronous messages from a JMS provider. EJB 2.1 expanded the definition of the message-driven bean so that it can support a...
Chapter 13. Timer Service
Business systems frequently use scheduling systems
to run programs at specified times. Scheduling systems typically run applications that generate reports, reformat data, or do audit work at night. In other...
Chapter 14. The JNDI ENC and Injection
Every EJB container that is deployed in an application server has its own personal internal registry called the Enterprise Naming Context (ENC).
This ENC is implemented by JNDI and is a sandbox whe...
Chapter 15. Interceptors
Interceptors are objects that are able to interpose themselves on method calls or the life cycle events of session and message-driven beans. They allow you to encapsulate common behavior that cuts across large par...
Chapter 17. Security
Most Java EE applications need to provide identity to users who access them and security
for that access. Applications may want to prevent hostile users from logging into their systems. They might also want to restr...
Chapter 18. EJB 3.0: Web Services Standards
Web services have taken the enterprise computing industry by storm in the past couple of years, and for good reason. They present the opportunity for real interoperability across hardware, opera...
Chapter 19. EJB 3.0 and Web Services
Support for web services in EJB 3.0
is based on the Java API for XML-based Web Services (JAX-WS)
2.0 specification,
as well its predecessor, the Java API for XML-based RPC (JAX-RPC)
1.1.
The...
Chapter 20. Java EE
The specification for Java Enterprise Edition 5 (Java EE 5)
defines a platform for developing web-enabled applications that includes Enterprise JavaBeans, servlets,
and JavaServer Pages (JSP). Java EE products...
Chapter 21. EJB Design in the Real World
EJB has changed rapidly over the past couple of years with the introduction of EJB 3.0 and Java Persistence. Best practices for using EJBs "in the real world" are just now being documented, and alr...
This workbook
is designed to be a companion to O'Reilly's Enterprise JavaBeans 3.0, Fifth Edition, for users of JBoss#8482;, an open source Java EE#8482; application server. Its goal is to provide step-by-step instructions for installi...
Chapter WORKBOOK 1. JBoss Installation and Configuration
This chapter guides you through the steps required to install a fully working JBoss server. Along the way, you will learn about JBoss 4.0's microkernel architecture, and the last se...
Chapter WORKBOOK 2. Exercises for Chapter 4
Chapter 4 of the EJB book walked you through a very basic example of creating one entity bean that mapped to one table and a session bean that acted as a faccedil;ade to this entity bean. The en...
Chapter WORKBOOK 3. Exercises for Chapter 5
Chapter 5 of the EJB book walked you through all of the details for deploying, creating, and interacting with
the EntityManager interface. This chapter uses the same Cabin entity bean introduc...
Chapter WORKBOOK 4. Exercises for Chapter 6
Chapter 6 of the EJB book walked you through some basic object-to-relational mappings for the persistent properties of your entity bean classes. The exercises in this chapter use a lot of the ex...
Chapter WORKBOOK 5. Exercises for Chapter 7
Chapter 7 of the EJB book walked you through the seven relationship types. The exercises in this chapter implement all of the entities mentioned in Chapter 7. You will get to see how these entit...
Chapter WORKBOOK 6. Exercises for Chapter 8
Chapter 8 of the EJB book walked you through some basic examples of mapping inheritance hierarchies. The exercises in this chapter use the code from Chapter 8 to show you each inheritance mappin...
Chapter WORKBOOK 7. Exercises for Chapter 9
chapter-9 of the EJB book introduced you to the javax.persistence.Query
interface as well as the intricacies of EJB QL. The exercises in this chapter explore the Query API
and provide exampl...
Chapter WORKBOOK 8. Exercises for Chapter 10
This chapter focuses on exercises that illustrate the entity callback annotations and entity listener constructs discussed in Chapter 10 of the EJB book.
The CHM file was convert...
Chapter WORKBOOK 9. Exercises for Chapter 11
This chapter implements exercises that illustrate the concepts introduced in Chapter 11 of the EJB book....
Chapter WORKBOOK 13. Exercises for Chapter 16
This chapter's exercises illustrate the conversational persistence context behavior discussed in Chapter 16....
С 2009 года мы стали переводить структура сайта на различные языки. Сайт теперь будет содержать книги не только на английском языке, но также и на других европейских языках, в том числе и на Русском языке.