| |
| |
Preface | |
| |
| |
| |
The Java Enterprise APIs | |
| |
| |
| |
Introduction | |
| |
| |
Enterprise Computing Defined | |
| |
| |
Enterprise Computing Demystified | |
| |
| |
Standard Java Enterprise APIsDe Facto Standard Enterprise Development ToolsAn Enterprise Computing Scenario | |
| |
| |
Other Enterprise APIs | |
| |
| |
2 | |
| |
| |
J2EE Application Assembly Model | |
| |
| |
Component Modules | |
| |
| |
Application Assemblies | |
| |
| |
Deploying J2EE Applications | |
| |
| |
| |
Java ServletsGetting a Servlet Environment | |
| |
| |
Servlet BasicsWeb Applications | |
| |
| |
Servlet Requests | |
| |
| |
Servlet Responses | |
| |
| |
Custom Servlet Initialization | |
| |
| |
SecurityServlet Filters | |
| |
| |
Thread SafetyCookies | |
| |
| |
Session Tracking | |
| |
| |
Databases and Non-HTML Content | |
| |
| |
| |
JavaServer Pages | |
| |
| |
JSP Basics | |
| |
| |
JSP Actions | |
| |
| |
The JSP Expression Language | |
| |
| |
JSP Standard Tag Library | |
| |
| |
Custom TagsWrapping Up | |
| |
| |
| |
JavaServer Faces | |
| |
| |
The Sample Application | |
| |
| |
Structure of a JSF Application | |
| |
| |
Managed Beans | |
| |
| |
The JSF Expression Language | |
| |
| |
JSF Actions and Views | |
| |
| |
Building TablesValidation | |
| |
| |
Moving on with JSF | |
| |
| |
| |
Enterprise Java | |
| |
| |
Beans | |
| |
| |
What Version Is Covered Here? | |
| |
| |
EJB Component Model Overview | |
| |
| |
EJB Tutorial | |
| |
| |
Deploying EJBs | |
| |
| |
Using Enterprise Java | |
| |
| |
Beans | |
| |
| |
Session Bean Specifics | |
| |
| |
Entity Beans | |
| |
| |
Message-Driven Beans | |
| |
| |
Transaction Management | |
| |
| |
EJB 3.0 | |
| |
| |
| |
Java and XML | |
| |
| |
Using XML Documents | |
| |
| |
Java API for XML Processing | |
| |
| |
SAXDOMXSLT | |
| |
| |
| |
JDBCJDBC Architecture | |
| |
| |
Connecting to the Database | |
| |
| |
Statements | |
| |
| |
Results | |
| |
| |
Handling Errors | |
| |
| |
Prepared Statements | |
| |
| |
BLOBs and CLOBs | |
| |
| |
Metadata | |
| |
| |
Transactions | |
| |
| |
Stored Procedures | |
| |
| |
Escape Sequences | |
| |
| |
Row | |
| |
| |
Sets | |
| |
| |
| |
JNDIJNDI Architecture | |
| |
| |
A Simple Example | |
| |
| |
Introducing the Context | |
| |
| |
Looking Up Objects in a Context | |
| |
| |
The Naming | |
| |
| |
Shell 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 | |
| |
| |
| |
J2EE Security | |
| |
| |
Basic Security ConceptsA 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 | |
| |
| |
| |
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 | |
| |
| |
| |
Web Services with JAX-RPC and SAAJ | |
| |
| |
What''s Covered Here? | |
| |
| |
Brief Introduction to Web Services | |
| |
| |
Java Web ServicesWriting Web Service Clients | |
| |
| |
Writing Web Services | |
| |
| |
Deploying Web Services | |
| |
| |
| |
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 | |
| |
| |
| |
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? | |
| |
| |
| |
JavaMailEmail and Java | |
| |
| |
MailCreating and Sending Messages | |
| |
| |
Retrieving Messages | |
| |
| |
Multipart Messages | |
| |
| |
| |
Transactions | |
| |
| |
Transaction Overview | |
| |
| |
Programmatic Transactions Versus Declarative Transactions | |
| |
| |
Optimistic Concurrency | |
| |
| |
EJB Transaction Management | |
| |
| |
Some Common Programming Scenarios | |
| |
| |
Transaction Best Practices | |
| |
| |
| |
Open Source Enterprise Tools | |
| |
| |
| |
Ant | |
| |
| |
What Version Is Covered Here? | |
| |
| |
Ant Overview | |
| |
| |
Ant Fundamentals | |
| |
| |
Core Tasks | |
| |
| |
Enterprise Tasks | |
| |
| |
Creating Portable Build Processes | |
| |
| |
| |
JUnit and Cactus | |
| |
| |
What''s Covered Here? | |
| |
| |
Unit Testing Concepts | |
| |
| |
JUnit Overview | |
| |
| |
Using | |
| |
| |
JUnit with Ant | |
| |
| |
Testing Enterprise Components with Cactus | |
| |
| |
| |
StrutsThe 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 | |
| |
| |
Dyna | |
| |
| |
Action | |
| |
| |
Forms and the Struts Validator | |
| |
| |
| |
Hibernate | |
| |
| |
The Sample Application | |
| |
| |
Principles of Hibernate | |
| |
| |
Configuration and Mapping | |
| |
| |
The Hibernate APIHQL (Hibernate Query Language) | |
| |
| |
Hibernate Services | |
| |
| |
Conclusion | |
| |
| |
| |
Annotations with XDoclet and J2SE Metadata | |
| |
| |
What''s Covered Here? | |
| |
| |
What Are Code Annotations? | |
| |
| |
Annotation Tools | |
| |
| |
XDoclet Tutorial | |
| |
| |
J2SE Annotations Tutorial | |
| |
| |
Appendixes | |
| |
| |
| |
J2EE Deployment Descriptor Reference | |
| |
| |
| |
JavaServer Faces Tag Libraries | |
| |
| |
| |
Enterprise JavaBeans Query Language Syntax | |
| |
| |
| |
SQL Reference | |
| |
| |
| |
JMS Message Selector Syntax | |
| |
| |
| |
RMI Tools | |
| |
| |
| |
IDL Refer | |