Java Enterprise in a Nutshell, 3/e

Jim Farley, William Crawford

  • 出版商: O'Reilly
  • 出版日期: 2005-12-13
  • 定價: $1,660
  • 售價: 8.0$1,328
  • 語言: 英文
  • 頁數: 896
  • 裝訂: Paperback
  • ISBN: 0596101422
  • ISBN-13: 9780596101428
  • 相關分類: Java 程式語言
  • 立即出貨(限量) (庫存=1)

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

商品描述

Description

Nothing is as constant as change, and this is as true in enterprise computing as anywhere else. With the recent release of Java 2 Enterprise Edition 1.4, developers are being called on to add even greater, more complex levels of interconnectivity to their applications.


To do this, Java developers today need a clear understanding of how to apply the new APIs, use the latest open source Java tools, and learn the capabilities and pitfalls in Java 2 Enterprise Edition 1.4 -- so they can plan a technology and implementation strategy for new enterprise projects.


Fortunately, this is exactly what they get with the new Java Enterprise in a Nutshell, 3rd Edition. Because most integrated development environments (IDE) today include API lookup, we took out the main API sections from our previous edition to make room for new chapters, among others, on Ant, Cactus, Hibernate, Jakarta Struts, JUnit, security, XDoclet, and XML/JAXP.


Revised and updated for the new 1.4 version of Sun Microsystems Java Enterprise Edition software, Java Enterprise in a Nutshell, 3rd Edition is a practical guide for enterprise Java developers.

 

Table of Contents  

Preface

I. The Java Enterprise APIs

1. Introduction

     Enterprise Computing Defined

     Enterprise Computing Demystified

     Standard Java Enterprise APIs

     De Facto Standard Enterprise Development Tools

     An Enterprise Computing Scenario

     Other Enterprise APIs

2. Application Assembly and Deployment

     J2EE Application Assembly Model

     Component Modules

     Application Assemblies

     Deploying J2EE Applications

3. Java Servlets

     Getting a Servlet Environment

     Servlet Basics

     Web Applications

     Servlet Requests

     Servlet Responses

     Custom Servlet Initialization

     Security

     Servlet Filters

     Thread Safety

     Cookies

     Session Tracking

     Databases and Non-HTML Content

4. JavaServer Pages

     JSP Basics

     JSP Actions

     The JSP Expression Language

     JSP Standard Tag Library

     Custom Tags

     Wrapping Up

5. JavaServer Faces

     The Sample Application

     Structure of a JSF Application

     Managed Beans

     The JSF Expression Language

     JSF Actions and Views

     Building Tables

     Validation

     Moving on with JSF

6. Enterprise JavaBeans

     What Version Is Covered Here?

     EJB Component Model Overview

     EJB Tutorial

     Deploying EJBs

     Using Enterprise JavaBeans

     Session Bean Specifics

     Entity Beans

     Message-Driven Beans

     Transaction Management

     EJB 3.0

7. Java and XML

     Using XML Documents

     Java API for XML Processing

     SAX

     DOM

     XSLT

8. JDBC

     JDBC Architecture

     Connecting to the Database

     Statements

     Results

     Handling Errors

     Prepared Statements

     BLOBs and CLOBs

     Metadata

     Transactions

     Stored Procedures

     Escape Sequences

     RowSets

9. JNDI

     JNDI Architecture

     A Simple Example

     Introducing the Context

     Looking Up Objects in a Context

     The NamingShell Application

     Listing the Children of a Context

     Creating and Destroying Contexts

     Binding Objects

     Accessing Directory Services

     Modifying Directory Entries

     Creating Directory Entries

     Searching a Directory

     Event Notification

10. J2EE Security

     Basic Security Concepts

     A Look at Java and J2EE Security Standards

     Declarative Security Versus Programmatic Security

     Web Component Security

     EJB Component Security

     Other J2EE Security Topics

     Limitations of J2EE Security

11. Java Message Service

     JMS in the J2EE Environment

     Elements of Messaging with JMS

     The Anatomy of Messages

     Point-to-Point Messaging

     Publish-Subscribe Messaging

     Unified Messaging

     Transactional Messaging

12. Web Services with JAX-RPC and SAAJ

     What's Covered Here?

     Brief Introduction to Web Services

     Java Web Services

     Writing Web Service Clients

     Writing Web Services

     Deploying Web Services

13. Remote Method Invocation

     What's Covered Here?

     Introduction to RMI

     Defining Remote Objects

     Creating the Stubs and Skeletons

     Accessing Remote Objects as a Client

     Dynamic Classloading

     Remote Object Activation

     RMI and Native Method Calls

     RMI Over IIOP

14. Java IDL (CORBA)

     A Note on Evolving Standards

     The CORBA Architecture

     Creating CORBA Objects

     Putting It in the Public Eye

     Finding and Using Remote Objects

     What If I Don't Have the Interface?

15. JavaMail

     Email and JavaMail

     Creating and Sending Messages

     Retrieving Messages

     Multipart Messages

16. Transactions

     Transaction Overview

     Programmatic Transactions Versus Declarative Transactions

     Optimistic Concurrency

     EJB Transaction Management

     Some Common Programming Scenarios

     Transaction Best Practices

II. Open Source Enterprise Tools

17. Ant

     What Version Is Covered Here?

     Ant Overview

     Ant Fundamentals

     Core Tasks

     Enterprise Tasks

     Creating Portable Build Processes

18. JUnit and Cactus

     What's Covered Here?

     Unit Testing Concepts

     JUnit Overview

     Using JUnit with Ant

     Testing Enterprise Components with Cactus

19. Struts

     The Scope of Struts

     The Sample Application

     The Development Process with Struts

     The Struts Controller

     The Action Class

     Views in Struts

     Struts Tags

     Struts Plug-ins

     DynaActionForms and the Struts Validator

20. Hibernate

     The Sample Application

     Principles of Hibernate

     Configuration and Mapping

     The Hibernate API

     HQL (Hibernate Query Language)

     Hibernate Services

     Conclusion

21. Annotations with XDoclet and J2SE Metadata

     What's Covered Here?

     What Are Code Annotations?

     Annotation Tools

     XDoclet Tutorial

     J2SE Annotations Tutorial

III. Appendixes

A. J2EE Deployment Descriptor Reference

B. JavaServer Faces Tag Libraries

C. Enterprise JavaBeans Query Language Syntax

D. SQL Reference

E. JMS Message Selector Syntax

F. RMI Tools

G. IDL Reference

H. Java IDL Tools

Index

商品描述(中文翻譯)

描述


在企業計算中,沒有什麼比變化更為持久,這一點在企業計算中也是如此。隨著最近發布的Java 2 Enterprise Edition 1.4,開發人員被要求為他們的應用程序添加更大、更複雜的互聯性。為了做到這一點,Java開發人員今天需要清楚地了解如何應用新的API,使用最新的開源Java工具,並了解Java 2 Enterprise Edition 1.4的能力和陷阱,以便為新的企業項目制定技術和實施策略。


幸運的是,這正是他們在新的第三版《Java Enterprise in a Nutshell》中所獲得的。由於大多數集成開發環境(IDE)今天都包含API查找功能,我們從上一版中刪除了主要的API部分,以便為Ant、Cactus、Hibernate、Jakarta Struts、JUnit、安全性、XDoclet和XML/JAXP等新章節騰出空間。


經過修訂和更新,以適應Sun Microsystems Java Enterprise Edition軟件的新1.4版本,《Java Enterprise in a Nutshell》第三版是企業Java開發人員的實用指南。

目錄


前言


I. Java Enterprise APIs


1. 簡介


2. 應用程序組裝和部署


3. Java Servlets


4. JavaServer Pages


5. JavaServer Faces