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 程式語言
  • 立即出貨(限量)

買這商品的人也買了...

商品描述


Description

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.)
Foreword.
Preface.
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.
Deployer.
System Administrator.
EJB Container Provider.
EJB Server Provider.

Tools.

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.
EmployeeDatabase.
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.
Overview.
Premium Health Plan EJB EntityBean.
Helper EJB Session Bean.
Premium Health Admin Web Web Application.
Premium Health AdminApp.
Premium Health Database.
Packaging.

Parts Developed by Providence.
Overview.
Providence Plan EJB EntityBean.
Providence Service Web 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.
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.
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.
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.

Glossary.
Index. 0201702673T04062001


Back to Top

商品描述(中文翻譯)

描述

這本權威、高級、深入的EJB應用覆蓋範圍廣泛!利用EJB的全部功能,將開發時間減半!組件開發是重點,電子商務開發人員正在轉向Java和EJB,而不是CORBA和COM!主要作者Vlada Matena是Sun的EJB首席架構師!在這本權威的書中,Sun的企業JavaBeans架構師展示了如何利用EJB的全部功能,更快、更有效地部署基於組件的企業系統。首先要了解EJB的架構及其與Sun Microsystems豐富的Java 2 Enterprise Edition平台的相互關係,以進行大規模業務開發。比較每個實施EJB的架構選項,並了解何時使用每個選項;檢查企業JavaBean的每個元素;然後掌握容器工具和服務、EJB角色、會話Bean、實體Bean、事務、安全性等。本書包含大量的示例代碼、完整的應用示例和完整的API參考。它將成為實施企業JavaBeans應用程序的所有人的理想資源:內部企業開發人員、創建EJB應用程序和可重用組件的第三方開發人員;Java開發人員;架構師、經理和其他IT專業人員。Vlada Matena是公認的EJB權威,是Sun的企業JavaBeans規範的首席架構師,也是Sun的JTS和JTA Java事務規範的架構師。他是Sun Microsystems的Java軟件部門的杰出工程師,負責J2EE架構團隊的工作。Matena是《Java 2平台,企業版》(0-201-70456-0)的合著者。Beth Stearns是Sun的Java軟件部門的技術作家。

適合的課程

Java-中級編程。

目錄

(注意:每章結尾都有結論。)
前言。
前言。
1. 企業JavaBeans架構的優勢。
從兩層到J2EE架構。
兩層應用程序架構。
傳統的三層應用程序架構。
早期基於Web的應用程序架構。
J2EE應用程序架構。
企業JavaBeans架構的優勢。
對應用程序開發人員的好處。
對客戶的好處。

2. 企業JavaBeans架構概述。
什麼是企業JavaBeans應用程序?
業務實體和流程和企業Bean類型。
業務實體。
業務流程。
業務規則的實現。
企業Bean類型。
選擇實體Bean還是會話Bean。
何時使用相依對象。
企業Bean的結構。
企業Bean主界面。
企業Bean遠程界面。
企業Bean類。
部署描述符。
容器工具和服務。
容器工件。
容器運行時服務。

3. 企業JavaBeans角色。
EJB角色。
豆子開發