Applying Enterprise JavaBeans: Component-Based Development for the J2EE
暫譯: 應用企業JavaBeans:J2EE的元件式開發
Vlada Matena, Beth Stearns
- 出版商: Addison Wesley
- 出版日期: 2000-12-27
- 定價: $980
- 售價: 5.0 折 $490
- 語言: 英文
- 頁數: 436
- 裝訂: Paperback
- ISBN: 0201702673
- ISBN-13: 9780201702675
-
相關分類:
Java 程式語言
立即出貨(限量)
買這商品的人也買了...
-
$680$537 -
$399Designing Enterprise Applications with the Java 2 Platform, Enterprise Edition (Paperback)
-
$980$774 -
$480$379 -
$880$695 -
$620$527 -
$650$553 -
$590$466 -
$690$538 -
$650$553 -
$720$569 -
$290$247 -
$149$149 -
$620$490 -
$750$638 -
$490$382 -
$690$538 -
$720$569 -
$620$527 -
$560$476 -
$780$663 -
$450$356 -
$390$304 -
$480$379 -
$620$490
相關主題
商品描述
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!
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.
Java--Intermediate Programming.
Table Of Contents
(NOTE: Each chapter concludes with a Conclusion.)
Foreword.
Preface.
1. Advantages of the Enterprise JavaBeans Architecture.
Traditional Three-Tier Application Architecture.
Early Web-Based Application Architecture.
J2EE Application Architecture.
Advantages of the Enterprise JavaBeans Architecture.
Benefits to Customers.
2. Enterprise JavaBeans Architecture Overview.
Business Entities and Processes and Enterprise Bean Types.
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 Remote Interface.
Enterprise Bean Class.
Deployment Descriptor.
Container Tools and Services.
Container Runtime Services.
3. Enterprise JavaBeans Roles.
Application Assembler.
Deployer.
System Administrator.
EJB Container Provider.
EJB Server Provider.
Tools.
4. Working with Session Beans.
Using Session Beans in Traditional Three-Tier Applications.
Understanding the State of a Session Object.
Understanding Conversational State.
Overview of the Example Application.
Main Parts of the Application.
The “Benefits Enrollment” Business Process.
Enrollment EJB Stateful Session Bean in Detail.
Enrollment Bean Session Bean Class Details.
Client Developer's Perspective.
Payroll EJB Stateless Session Bean.
Client Developer's Perspective.
Database Schemas.
Benefits Database Schema.
Payroll Database Schema.
Container-Provided Benefits.
5. Session Bean in its Container.
How the Container Manages Session Beans at Runtime.
Session Object Creation.
Business Method Invocation.
Session Bean Passivation and Activation.
Session Object Removal.
Session Bean Timeout.
6. Understanding Entity Beans.
Remote Interface.
Primary Key and Object Identity.
Entity Object Life Cycle.
Entity Bean Handle.
Bean Developer View of an Entity Bean.
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.
Main Parts of the Application.
Distributed Deployment.
Pre-existing Parts at Star Enterprise.
Payroll System.
Parts Developed by Wombat.
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.
Packaging.
Parts Developed by Providence.
Providence Plan EJB EntityBean.
Providence Service Web Web Application.
Packaging.
Summary of the Integration Techniques.
Client Provider Publishes EJB Client-View Interfaces.
Use of Container-managed Persistence.
8. Understanding Transactions.
Transaction Attribute Values.
Transaction Attributes for Sample Application.
Programmatic Transaction Demarcation.
Transaction Demarcation by a Session Bean.
Pitfalls of Using Programmatic Transaction Demarcation.
9. Managing Security.
Managing Principal Mapping.
Responsibilities of the Container Provider.
Managing Multiple Applications and Domains.
Application Provider's View of Security.
Authorization.
Declarative Security Mechanism.
Security Roles.
Method Permissions.
Programmatic Security API.
Example Application Security.
Deployer's Responsibility.
Deploying Premium Health's Enterprise Bean.
Deploying Providence's Enterprise Bean.
Appendix A: API Reference.
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.
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.
Data Access Command Beans.
Glossary.
Index. 0201702673T04062001
商品描述(中文翻譯)
描述
本書提供了對 EJB 應用程式的權威、進階和深入的探討!
- 利用 EJB 的全部功能,將開發時間縮短一半!
- 組件開發才是重點;與其使用 CORBA 和 COM,電子商務開發者正轉向 Java 和 EJB!
- 主要作者 Vlada Matena 是 Sun 的 EJB 首席架構師!
在這本權威的書中,Sun 的 Enterprise JavaBeans 架構師展示了如何充分利用 EJB 的強大功能,以更快、更有效地部署基於組件的企業系統。首先了解 EJB 的架構及其與 Sun Microsystems 的豐富 Java 2 Enterprise Edition 平台在大型商業開發中的相互關係。比較在應用程式中實現 EJB 的每個架構選項,並了解何時使用每個選項;回顧每個 Enterprise JavaBean 的元素;然後掌握容器工具和服務、EJB 角色、會話 Bean、實體 Bean、事務、安全性等。本書包含大量範例代碼、完整的應用程式範例和完整的 API 參考。對於所有實施 Enterprise JavaBeans 應用程式的人來說,這將是理想的資源:內部企業開發者、創建 EJB 應用程式和可重用組件的第三方開發者;Java 開發者;架構師、經理和其他 IT 專業人士。
Vlada Matena 是公認的 EJB 權威,擔任 Sun 的 Enterprise JavaBeans 規範首席架構師,並且是 Sun 的 JTS 和 JTA Java 事務規範的架構師。他是 Sun Microsystems Java 軟體部門的傑出工程師,參與 J2EE 架構團隊的工作。Matena 是 Java™ 2 平台,企業版的共同作者 (0-201-70456-0)。Beth Stearns 是 Sun Java 軟體部門的技術作家。
適合的課程
Java--中級程式設計。
目錄
(注意:每章結尾都有結論。)
前言。
序言。
1. Enterprise JavaBeans 架構的優勢。
從兩層架構到 J2EE 架構。
兩層應用程式架構。
傳統三層應用程式架構。
早期基於網路的應用程式架構。
J2EE 應用程式架構。
Enterprise JavaBeans 架構的優勢。
對應用程式開發者的好處。
對客戶的好處。
2. Enterprise JavaBeans 架構概述。
什麼是 Enterprise JavaBeans 應用程式?
商業實體和流程及 Enterprise Bean 類型。
商業實體。
商業流程。
商業規則的實現。
Enterprise Bean 類型。
選擇實體 Bean 或會話 Bean。
何時使用依賴物件。
Enterprise Beans 的結構。
Enterprise Bean 主介面。
Enterprise Bean 遠端介面。
Enterprise Bean 類別。
部署描述符。
容器工具和服務。
容器工件。
容器運行時服務。
3. Enterprise JavaBeans 角色。
EJB 角色。
Bean 開發者。
應用程式組合者。
部署者。
系統管理員。
EJB 容器提供者。
EJB 伺服器提供者。
工具。
4. 使用會話 Bean。
何時使用會話 Bean?
在網路應用程式中使用會話 Bean。
在傳統三層應用程式中使用會話 Bean。
了解會話物件的狀態。
有狀態與無狀態會話 Bean。
了解對話狀態。
範例應用程式概述。
應用程式的使用者視圖。
應用程式的主要部分。
“福利登記”商業流程。
詳細的登記 EJB 有狀態會話 Bean。
登記 EJB 會話 Bean 部分。
登記 Bean 會話 Bean 類別詳細資訊。
客戶端開發者的視角。
薪資 EJB 無狀態會話 Bean。
薪資 EJB 無狀態會話 Bean 部分。
客戶端開發者的視角。
資料庫架構。
員工資料庫架構。
福利資料庫架構。
薪資資料庫架構。
容器提供的福利。
5. 會話 Bean 在其容器中。
容器工件。
容器如何在運行時管理會話 Bean。
EJB 主介面查找。
會話物件創建。
商業方法調用。
會話 Bean 的被動化和激活。
會話物件移除。
會話 Bean 超時。
6. 了解實體 Bean。
客戶端對實體 Bean 的視圖。
主介面。
遠端介面。
主鍵和物件身份。
實體物件生命週期。
實體 Bean 處理。
Bean 開發者對實體 Bean 的視圖。
實體物件持久性。
實體 Bean 類別方法。
實體 Bean 實例生命週期。
使用 ejbLoad 和 ejbStore 方法。
設計實體 Bean 遠端介面。
實體物件的並發調用。
使用實體 Bean 與現有數據。
7. 實體 Bean 應用範例。
應用概述。
問題描述。
應用程式的主要部分。
分散式部署。
Star Enterprise 的現有部分。
員工資料庫。
薪資系統。
Wombat 開發的部分。
Wombat 部分概述。
登記 EJB 會話 Bean。
員工 EJB 實體 Bean。
選擇 EJB 實體 Bean。
包裝計劃 EJB 實體 Bean。
登記網路應用程式。
福利管理網路應用程式。
福利資料庫。
部件的包裝。
Premium Health 開發的部分。
概述。
Premium Health 計劃 EJB 實體 Bean。
幫助 EJB 會話 Bean。
Premium Health 管理網路應用程式。
Premium Health 管理應用程式。
Premium Health 資料庫。
包裝。
Providence 開發的部分。
概述。
Providence 計劃 EJB 實體 Bean。
Providence 服務網路應用程式。
包裝。
整合技術的總結。
Bean 提供者發布 EJB 客戶端視圖介面。
客戶端提供者發布 EJB 客戶端視圖介面。
使用容器管理的持久性。
8. 了解事務。
宣告式事務劃分。
事務屬性。
事務屬性值。
範例應用程式的事務屬性。
程式化事務劃分。
客戶端劃分的事務。
會話 Bean 劃分的事務。
使用程式化事務劃分的陷阱。
9. 管理安全性。
系統管理員的責任。
管理用戶和安全主體。
管理主體映射。
容器提供者的責任。
認證和授權任務。
管理多個應用程式和域。
應用提供者的安全性視圖。
客戶端認證。
授權。
宣告式安全機制。
安全角色。
方法權限。
程式化安全 API。
範例應用程式安全性。
部署者的責任。
部署 Wombat 的 Enterprise Beans。
部署 Premium Health 的 Enterprise Bean。
部署 Providence 的 Enterprise Bean。
附錄 A:API 參考。
EJB 物件介面方法。
EJB 主介面方法。
Enterprise Bean 介面。
EJB 上下文介面方法。
EJB 元數據介面方法。
實體 Bean 介面方法。
實體上下文介面方法。
處理介面方法。
主處理介面方法。
會話 Bean 介面方法。
會話上下文介面方法。
會話同步介面方法。
例外類別。
創建例外類別。
重複鍵例外類別。
EJB 例外類別。
查找例外類別。
無此實體例外類別。
物件未找到例外類別。
移除例外類別。
附錄 B:代碼範例。
CCI 介面類別。
數據訪問命令 Bean。
術語表。
索引。