買這商品的人也買了...
-
$450$383 -
$780CMMI: Guidelines for Process Integration and Product Improvement (Harcover)
-
$1,740$1,653 -
$980$960 -
$480$379 -
$650$507 -
$960$941 -
$590JBoss : A Developer's Notebook
-
$450$356 -
$880$695 -
$390$308 -
$880$695 -
$550$275 -
$580$458 -
$650$514 -
$390$308 -
$890$757 -
$450$383 -
$580$458 -
$780$663 -
$600$510 -
$650$507 -
$880$695 -
$1,615Pentaho Kettle Solutions: Building Open Source ETL Solutions with Pentaho Data Integration (Paperback)
-
$2,010$1,910
商品描述
Description
Consisting of a number of well-known open source products, JBoss is more a family of interrelated services than a single monolithic application. But, as with any tool that's as feature-rich as JBoss, there are number of pitfalls and complexities, too.
Most developers struggle with the same issues when deploying J2EE applications on JBoss: they have trouble getting the many J2EE and JBoss deployment descriptors to work together; they have difficulty finding out how to get started; their projects don't have a packaging and deployment strategy that grows with the application; or, they find the Class Loaders confusing and don't know how to use them, which can cause problems.
JBoss at Work: A Practical Guide helps developers overcome these challenges. As you work through the book, you'll build a project using extensive code examples. You'll delve into all the major facets of J2EE application deployment on JBoss, including JSPs, Servlets, EJBs, JMS, JNDI, web services, JavaMail, JDBC, and Hibernate. With the help of this book, you'll:
- Implement a full J2EE application and deploy it on JBoss
- Discover how to use the latest features of JBoss 4 and J2EE 1.4, including J2EE-compliant web services
- Master J2EE application deployment on JBoss with EARs, WARs, and EJB JARs
- Understand the core J2EE deployment descriptors and how they integrate with JBoss-specific descriptors
- Base your security strategy on JAAS
Written for Java developers who want to use JBoss on their projects, the book covers the gamut of deploying J2EE technologies on JBoss, providing a brief survey of each subject aimed at the working professional with limited time.
If you're one of the legions of developers who have decided to give JBoss a try, then JBoss at Work: A Practical Guide is your next logical purchase. It'll show you in plain language how to use the fastest growing open source tool in the industry today. If you've worked with JBoss before, this book will get you up to speed on JBoss 4, JBoss WS (web services), and Hibernate 3.
Table of Contents
Preface
1. Getting Started with JBoss
Why "JBoss at Work"?
Why JBoss?
The Example: JAW Motors
The Tools
Installing JBoss
Deploying Applications to JBoss
Looking Ahead-2. Web Applications
The Servlet Container
Three-Tier Applications
Exploring the Presentation Tier
Building the View Cars Page
Adding a Model and Controller
Looking Ahead-3. Building and Deploying an EAR
WARs Versus EARs
Application.xml
Common JAR
Deploying the EAR
Adding a DAO
Using XDoclet
Looking Ahead-4. Databases and JBoss
Persistence Options
JDBC
JNDI
JNDI References in web.xml
JBoss DataSource Descriptors
JDBC Driver JARs
Database Checklist
Accessing the Database Using Ant
Creating JDBCCarDAO
Looking Ahead-5. Hibernate and JBoss
The Pros and Cons of ORMs
Hibernate Mapping Files
Hibernate MBean Service Descriptor
Creating a HAR
Adding the HAR to the EAR
Creating a JNDI lookup
Hibernate Checklist
HibernateCarDAO
Adding a Car
Editing a Car
Deleting a Car
Looking Ahead-6. Stateless Session Beans
Issues with EJBs
Should I Use EJB or Not?
Business Tier
Enterprise JavaBeans
Our Example
Iteration 1-Introduce a Session Bean
Calling the Session Bean from the Controller Servlet
EJB-Based JNDI References in Web-Based Deployment Descriptors
Session Bean Types
Session Beans
Remote Versus Local EJB Calls
Local and Remote Interfaces
Home Interfaces
Reviewing Iteration 1
Testing Iteration 1
Iteration 2-Move Business Logic Out of the Controller
Reviewing Iteration 2
Testing Iteration 2
Iteration 3-Buy a Car
The AccountingDTO
Developing the HibernateAccountingDAO
Adding buyCar( ) to the InventoryFacadeBean
Reviewing Iteration 3
Testing Iteration 3
Final Thoughts on Session Beans
Looking Ahead . . .7. Java Message Service (JMS) and Message-Driven Beans
Sending Messages with JMS
Upgrade the Site: Running a Credit Check
JMS Architecture Overview
JMS Messaging Models
Creating a Message
Sending the Message
Core JMS API
Sending a JMS Message
JMS-Based JNDI References in Web-Based Deployment Descriptors
Deploying JMS Destinations on JBoss
JMS Checklist
Message-Driven Beans (MDBs)
MDB Checklist
Testing the Credit Check
Looking Ahead . . .8. JavaMail
Running a Credit Check
Sending Email Messages with JavaMail
Upgrading the MDB to Send an Email Message
Sending an Email Message
JavaMail-Based JNDI References in EJB Deployment Descriptors
Automating JavaMail-Based JNDI References with XDoclet
Deploying JavaMail on JBoss
JavaMail Checklist
Testing the Credit Check Notification Email
Looking Ahead . . .9. Security
J2EE Security
Web-Based Security
Restricting Access with web.xml
JAAS
Deploying a JAAS-Based Security Realm on JBoss
Testing Secure JSPs
Protecting the Administrative Actions
Web Security Checklist
Integrating Web Tier and EJB Tier Security
EJB Security
EJB Security Checklist
Looking Ahead . . .10. Web Services
Web Services Architecture
JBoss 4.x and Web Services
J2EE 1.4 and Web Services
Implementing J2EE 1.4 Web Services
Service Endpoint Interface (SEI)
Modifying ejb-jar.xml
webservices.xml
JAX-RPC Mapping File
WSDL File
Set the Web Service URL
Modifying the InventoryFacadeBean EJB
Web Services Deployment
Automating Web Services Deployment
J2EE Web Services Checklist
Testing Web Services Deployment
Web Services Client
Implementing a Web Service Client
Web Service Client Checklist
Testing the Web Service Client
Final Thoughts on J2EE 1.4 Web Services
Conclusion
Congratulations!A. ClassLoaders and JBoss
B. Logging and JBoss
C. JAAS Tutorial
Index
商品描述(中文翻譯)
**描述**
JBoss 由多個知名的開源產品組成,實際上更像是一系列相互關聯的服務,而不是單一的單體應用程式。然而,與任何功能豐富的工具一樣,JBoss 也存在許多陷阱和複雜性。
大多數開發人員在 JBoss 上部署 J2EE 應用程式時都會面臨相同的問題:他們難以使多個 J2EE 和 JBoss 部署描述符協同工作;他們難以找到如何開始的方式;他們的專案沒有隨著應用程式增長的打包和部署策略;或者,他們發現類加載器令人困惑,不知道如何使用它們,這可能會導致問題。
《JBoss 實務指南》幫助開發人員克服這些挑戰。在閱讀本書的過程中,您將使用大量的程式碼範例來構建一個專案。您將深入了解在 JBoss 上部署 J2EE 應用程式的所有主要方面,包括 JSP、Servlet、EJB、JMS、JNDI、網路服務、JavaMail、JDBC 和 Hibernate。在本書的幫助下,您將:
- 實現一個完整的 J2EE 應用程式並在 JBoss 上部署
- 探索如何使用 JBoss 4 和 J2EE 1.4 的最新功能,包括符合 J2EE 標準的網路服務
- 精通在 JBoss 上使用 EAR、WAR 和 EJB JAR 進行 J2EE 應用程式的部署
- 理解核心 J2EE 部署描述符及其如何與 JBoss 特定描述符整合
- 基於 JAAS 建立您的安全策略
本書是為希望在專案中使用 JBoss 的 Java 開發人員撰寫的,涵蓋了在 JBoss 上部署 J2EE 技術的各個方面,針對時間有限的專業人士提供每個主題的簡要概述。
如果您是決定嘗試 JBoss 的開發人員之一,那麼《JBoss 實務指南》將是您下一個合乎邏輯的購買選擇。它將以簡單的語言向您展示如何使用當今業界增長最快的開源工具。如果您之前曾使用過 JBoss,本書將幫助您快速了解 JBoss 4、JBoss WS(網路服務)和 Hibernate 3。
**目錄**
**前言**
**1. 開始使用 JBoss**
- 為什麼選擇《JBoss 實務指南》?
- 為什麼選擇 JBoss?
- 範例:JAW Motors
- 工具
- 安裝 JBoss
- 將應用程式部署到 JBoss
- 展望未來
**2. 網路應用程式**
- Servlet 容器
- 三層應用程式
- 探索展示層
- 建立查看汽車頁面
- 添加模型和控制器
- 展望未來
**3. 建立和部署 EAR**
- WAR 與 EAR
- application.xml
- 通用 JAR
- 部署 EAR
- 添加 DAO
- 使用 XDoclet
- 展望未來
**4. 數據庫與 JBoss**
- 持久性選項
- JDBC
- JNDI
- web.xml 中的 JNDI 引用
- JBoss 數據源描述符
- JDBC 驅動 JAR
- 數據庫檢查清單
- 使用 Ant 訪問數據庫
- 創建 JDBCCarDAO
- 展望未來
**5. Hibernate 與 JBoss**
- ORM 的優缺點
- Hibernate 映射文件
- Hibernate MBean 服務描述符
- 創建 HAR
- 將 HAR 添加到 EAR
- 創建 JNDI 查詢
- Hibernate 檢查清單
- HibernateCarDAO
- 添加汽車
- 編輯汽車
- 刪除汽車
- 展望未來
**6. 無狀態會話 Bean**
- EJB 的問題
- 我應該使用 EJB 嗎?
- 業務層
- 企業 JavaBeans
- 我們的範例
- 第一次迭代 - 引入會話 Bean
- 從控制器 Servlet 調用會話 Bean
- 基於 EJB 的 JNDI 引用在基於網路的部署描述符中
- 會話 Bean 類型
- 會話 Beans
- 遠程與本地 EJB 調用
- 本地和遠程介面
- 家庭介面
- 回顧第一次迭代
- 測試第一次迭代
- 第二次迭代 - 將業務邏輯移出控制器
- 回顧第二次迭代
- 測試第二次迭代
- 第三次迭代 - 購買汽車
- AccountingDTO
- 開發 HibernateAccountingDAO
- 將 buyCar() 添加到 InventoryFacadeBean
- 回顧第三次迭代
- 測試第三次迭代
- 對會話 Beans 的最終思考
- 展望未來...
**7. Java 消息服務 (JMS) 和消息驅動 Bean**
- 使用 JMS 發送消息
- 升級網站:進行信用檢查
- JMS 架構概述
- JMS 消息模型
- 創建消息
- 發送消息
- 核心 JMS API
- 發送 JMS 消息
- 基於 JMS 的 JNDI 引用在基於網路的部署描述符中
- 在 JBoss 上部署 JMS 目的地
- JMS 檢查清單
- 消息驅動 Bean (MDB)
- MDB 檢查清單
- 測試信用檢查
- 展望未來...
**8. JavaMail**
- 進行信用檢查
- 使用 JavaMail 發送電子郵件消息
- 升級 MDB 以發送電子郵件消息
- 發送電子郵件消息
- 基於 JavaMail 的 JNDI 引用在 EJB 部署描述符中
- 使用 XDoclet 自動化基於 JavaMail 的 JNDI 引用
- 在 JBoss 上部署 JavaMail
- JavaMail 檢查清單
- 測試信用檢查通知電子郵件
- 展望未來...
**9. 安全性**
- J2EE 安全性
- 基於網路的安全性
- 使用 web.xml 限制訪問
- JAAS
- 在 JBoss 上部署基於 JAAS 的安全領域
- 測試安全 JSP
- 保護管理操作
- 網路安全檢查清單
- 整合網路層和 EJB 層安全性
- EJB 安全性
- EJB 安全檢查清單
- 展望未來...
**10. 網路服務**
- 網路服務架構
- JBoss 4.x 和網路服務
- J2EE 1.4 和網路服務
- 實現 J2EE 1.4 網路服務
- 服務端點介面 (SEI)
- 修改 ejb-jar.xml
- webservices.xml
- JAX-RPC 映射文件
- WSDL 文件
- 設定網路服務 URL
- 修改 InventoryFacadeBean EJB
- 網路服務部署
- 自動化網路服務部署
- J2EE 網路服務檢查清單
- 測試網路服務部署
- 網路服務客戶端
- 實現網路服務客戶端
- 網路服務客戶端檢查清單
- 測試網路服務客戶端
- 對 J2EE 1.4 網路服務的最終思考
- 結論
- 恭喜!
**A. 類加載器與 JBoss**
**B. 日誌與 JBoss**
**C. JAAS 教程**
**索引**