Applying Enterprise JavaBeans
Component-Based Development for the J2EE Platform
Vlada Matena, Beth Stearns - Collection The Java series
Résumé
You will find in-depth coverage of such topics as:
- EJB's place within the Java™ 2 Platform, Enterprise Edition
- The advantages of the EJB architecture
- The internal structure of enterprise beans
- Session beans, including a discussion on stateful versus stateless session beans
- Entity beans, including life cycle, persistence management, and container management
- Transaction management
- Overview of security responsibilities of the various EJB roles
- Using EJB in application integration
Two example applications that run throughout the book are used to illustrate many of the typical problems encountered in enterprise application development. The first example application, a benefits enrollment application developed by an in-house IT department, explains session beans and how to use them. The second example uses the first example and turns it into an application developed by an ISV, demonstrating how the entity bean architecture helps ISVs overcome the challenges of programming for multiple clients and different operational environments.
In addition to the two application examples, the authors describe the individual features of the EJB architecture and discuss when and how they should be used in applications. The book concludes with a comprehensive API reference.
Contents
(NOTE: Each chapter concludes with a
Conclusion.)
Foreword.
Preface.
1. Advantages of the Enterprise JavaBeans
Architecture.
Two-Tier Application Architecture.
Traditional Three-Tier Application Architecture.
Early Web-Based Application Architecture.
J2EE Application Architecture.
Advantages of the Enterprise JavaBeans Architecture.
Benefits to the Application Developer.
Benefits to Customers.
2. Enterprise JavaBeans Architecture Overview.
Business Entities and Processes and Enterprise Bean Types.
Business Entities.
Business Processes.
Implementation of Business Rules.
Enterprise Bean Types.
Choosing Entity Beans or Session Beans.
When to Use Dependent Objects.
Structure of Enterprise Beans.
Enterprise Bean Home Interface.
Enterprise Bean Remote Interface.
Enterprise Bean Class.
Deployment Descriptor.
Container Tools and Services.
Container Artifacts.
Container Runtime Services.
3. Enterprise JavaBeans Roles.
Bean Developer.
Application Assembler.
Deployer.
System Administrator.
EJB Container Provider.
EJB Server Provider.
Tools.
4. Working with Session Beans.
Using Session Beans in Web Applications.
Using Session Beans in Traditional Three-Tier Applications.
Understanding the State of a Session Object.
Stateful versus Stateless Session Beans.
Understanding Conversational State.
Overview of the Example Application.
User View of the Application.
Main Parts of the Application.
The “Benefits Enrollment” Business Process.
EnrollmentEJB Stateful Session Bean in Detail.
EnrollmentEJB Session Bean Parts.
EnrollmentBean Session Bean Class Details.
Client Developer's Perspective.
PayrollEJB Stateless Session Bean.
PayrollEJB Stateless Session Bean Parts.
Client Developer's Perspective.
Database Schemas.
EmployeeDatabase Schema.
BenefitsDatabase Schema.
PayrollDatabase Schema.
Container-Provided Benefits.
5. Session Bean in its Container.
How the Container Manages Session Beans at Runtime.
EJB Home Interface Lookup.
Session Object Creation.
Business Method Invocation.
Session Bean Passivation and Activation.
Session Object Removal.
Session Bean Timeout.
6. Understanding Entity Beans.
Home Interface.
Remote Interface.
Primary Key and Object Identity.
Entity Object Life Cycle.
Entity Bean Handle.
Bean Developer View of an Entity Bean.
Entity Object Persistence.
Entity Bean Class Methods.
Entity Bean Instance Life Cycle.
Using the ejbLoad and ejbStore Methods.
Designing the Entity Bean Remote Interface.
Concurrent Invocation of an Entity Object.
Using Entity Beans with Pre-Existing Data.
7. Entity Bean Application Example.
Problem Description.
Main Parts of the Application.
Distributed Deployment.
Pre-existing Parts at Star Enterprise.
EmployeeDatabase.
Payroll System.
Parts Developed by Wombat.
Overview of the Wombat Parts.
EnrollmentEJB Session Bean.
EmployeeEJB Entity Bean.
SelectionEJB Entity Bean.
WrapperPlanEJB Entity Bean.
EnrollmentWeb Web Application.
BenefitsAdminWeb Web Application.
BenefitsDatabase.
Packaging of Parts.
Parts Developed by Premium Health.
Overview.
PremiumHealthPlanEJB EntityBean.
HelperEJB Session Bean.
PremiumHealthAdminWeb Web Application.
PremiumHealthAdminApp.
PremiumHealthDatabase.
Packaging.
Parts Developed by Providence.
Overview.
ProvidencePlanEJB EntityBean.
ProvidenceServiceWeb Web Application.
Packaging.
Summary of the Integration Techniques.
Bean Provider Publishes EJB Client-View Interfaces.
Client Provider Publishes EJB Client-View Interfaces.
Use of Container-managed Persistence.
8. Understanding Transactions.
Transaction Attributes.
Transaction Attribute Values.
Transaction Attributes for Sample Application.
Programmatic Transaction Demarcation.
Transaction Demarcated by a Client.
Transaction Demarcation by a Session Bean.
Pitfalls of Using Programmatic Transaction Demarcation.
9. Managing Security.
Administering Users and Security Principals.
Managing Principal Mapping.
Responsibilities of the Container Provider.
Authentication and Authorization Tasks.
Managing Multiple Applications and Domains.
Application Provider's View of Security.
Client Authentication.
Authorization.
Declarative Security Mechanism.
Security Roles.
Method Permissions.
Programmatic Security API.
Example Application Security.
Deployer's Responsibility.
Deploying Wombat's Enterprise Beans.
Deploying Premium Health's Enterprise Bean.
Deploying Providence's Enterprise Bean.
Appendix A: API Reference.
EJBHome Interface Methods.
EnterpriseBean Interface.
EJBContext Interface Methods.
EJBMetaData Interface Methods.
EntityBean Interface Methods.
EntityContext Interface Methods.
Handle Interface Methods.
HomeHandle Interface Methods.
SessionBean Interface Methods.
SessionContext Interface Methods.
SessionSynchronization Interface Methods.
Exception Classes.
CreateException Class.
DuplicateKeyException Class.
EJBException Class.
FinderException Class.
NoSuchEntityException Class.
ObjectNotFoundException Class.
RemoveException Class.
Appendix B: Code Samples.
Data Access Command Beans.
Glossary.
Index.
L'auteur - Vlada Matena
Vlada Matena is a Distinguished Engineer with the Java Software division of Sun Microsystems Inc., where he works on the J2EE architecture team. He is the Chief Architect of the Enterprise JavaBeans specification, and an architect of the JTS and JTA specifications.
L'auteur - Beth Stearns
Beth Stearns is the principal partner of ComputerEase
Publishing, a computer consulting firm she founded in 1982.
Her client list includes Sun Microsystems, Inc., Silicon
Graphics, Inc., Oracle Corporation, and Xerox Corporation.
Among her publications are the "Java Native Interface"
chapter in The Java Tutorial Continued (Addison-Wesley),
"The EJB Programming Guide" for Inprise Corporation, and
"Understanding EDT," a guide to Digital Equipment
Corporation's text editor. Stearns received a bachelor of
science from Cornell University and a master's degree from
Adelphi University.
Caractéristiques techniques
PAPIER | |
Éditeur(s) | Addison Wesley |
Auteur(s) | Vlada Matena, Beth Stearns |
Collection | The Java series |
Parution | 15/03/2001 |
Nb. de pages | 435 |
Format | 18,6 x 23,3 |
Couverture | Broché |
Poids | 687g |
Intérieur | Noir et Blanc |
EAN13 | 9780201702675 |
Avantages Eyrolles.com
Consultez aussi
- Les meilleures ventes en Graphisme & Photo
- Les meilleures ventes en Informatique
- Les meilleures ventes en Construction
- Les meilleures ventes en Entreprise & Droit
- Les meilleures ventes en Sciences
- Les meilleures ventes en Littérature
- Les meilleures ventes en Arts & Loisirs
- Les meilleures ventes en Vie pratique
- Les meilleures ventes en Voyage et Tourisme
- Les meilleures ventes en BD et Jeunesse