Applying Enterprise JavaBeans: Component-Based Development for the J2EE

Vlada Matena, Beth Stearns

  • 出版商: Addison Wesley
  • 出版日期: 2000-12-27
  • 定價: $980
  • 售價: 3.1$299
  • 語言: 英文
  • 頁數: 436
  • 裝訂: Paperback
  • ISBN: 0201702673
  • ISBN-13: 9780201702675
  • 相關分類: Java 程式語言





The authoritative, advanced, in-depth coverage of EJB applications!

  • Leverage the full power of EJBs. Cut development time in half!
  • Component development is where it's at; instead of CORBA and COM, e-business developers are turning to Java and EJB!
  • Lead author Vlada Matena is Sun's EJB chief architect!
In this authoritative book, Sun's Enterprise JavaBeans architect demonstrates how to leverage the full power of EJB to deploy component-based enterprise systems faster, and more effectively. Start by understanding EJB's architecture and its interrelationships with the rest of Sun Microsystems' rich Java 2 Enterprise Edition platform for large-scale business development. Compare each architectural option for implementing EJB in your applications, and understand when to use each; review each element of an Enterprise JavaBean; then master container tools and services, EJB roles, session beans, entity beans, transactions, security, and more. The book includes extensive sample code, full-fledged application examples, and a complete API reference. It will be an ideal resource for everyone implementing Enterprise JavaBeans applications: in-house corporate developers, third-party developers creating EJB applications and reusable components; Java developers; architects, managers, and other IT professionals.

Vlada Matena a recognized EJB authority, is Chief Architect of Sun's Enterprise JavaBeans specification, and an architect of Sun's JTS and JTA Java transaction specifications. He is a Distinguished Engineer with the Java Software division of Sun Microsystems where he works on the J2EE architecture team. Matena is co-author of Java™ 2 Platform, Enterprise Edition (0-201-70456-0). Beth Stearns is a technical writer in Sun's Java software division.

Back to Top

Appropriate Courses

Java--Intermediate Programming.

Back to Top

Table Of Contents

(NOTE: Each chapter concludes with a Conclusion.)
1. Advantages of the Enterprise JavaBeans Architecture.

From a Two-Tier to J2EE 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.
What Are Enterprise JavaBeans Applications?
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.
EJB Roles.
Bean Developer.
Application Assembler.
System Administrator.
EJB Container Provider.
EJB Server Provider.


4. Working with Session Beans.
When to Use 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.

Enrollment EJB Stateful Session Bean in Detail.
Enrollment EJB Session Bean Parts.
Enrollment Bean Session Bean Class Details.
Client Developer's Perspective.

Payroll EJB Stateless Session Bean.
Payroll EJB Stateless Session Bean Parts.
Client Developer's Perspective.

Database Schemas.
Employee Database Schema.
Benefits Database Schema.
Payroll Database Schema.

Container-Provided Benefits.

5. Session Bean in its Container.
Container Artifacts.
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.
Client View of an Entity Bean.
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.
Application Overview.
Problem Description.
Main Parts of the Application.
Distributed Deployment.

Pre-existing Parts at Star Enterprise.
Payroll System.

Parts Developed by Wombat.
Overview of the Wombat Parts.
EnrollmentEJB Session Bean.
Employee EJB Entity Bean.
Selection EJB Entity Bean.
Wrapper Plan EJB Entity Bean.
Enrollment Web Web Application.
Benefits Admin Web Web Application.
Benefits Database.
Packaging of Parts.

Parts Developed by Premium Health.
Premium Health Plan EJB EntityBean.
Helper EJB Session Bean.
Premium Health Admin Web Web Application.
Premium Health AdminApp.
Premium Health Database.

Parts Developed by Providence.
Providence Plan EJB EntityBean.
Providence Service Web Web Application.

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.
Declarative Transaction Demarcation.
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.
Responsibilities of the System Administrator.
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.
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.
EJB Object Interface Methods.
EJB Home Interface Methods.
Enterprise Bean Interface.
EJB Context Interface Methods.
EJB Meta Data Interface Methods.
Entity Bean Interface Methods.
Entity Context Interface Methods.
Handle Interface Methods.
Home Handle Interface Methods.
Session Bean Interface Methods.
Session Context Interface Methods.
Session Synchronization Interface Methods.
Exception Classes.
Create Exception Class.
Duplicate Key Exception Class.
EJB Exception Class.
Finder Exception Class.
No Such Entity Exception Class.
Object Not Found Exception Class.
Remove Exception Class.

Appendix B: Code Samples.
CCI Interface Classes.
Data Access Command Beans.

Index. 0201702673T04062001

Back to Top