Foreword |
|
xiii | |
Preface |
|
xv | |
About the Authors |
|
xix | |
|
|
1 | (24) |
|
Challenges of Enterprise Application Development |
|
|
2 | (3) |
|
|
3 | (1) |
|
Integration with Existing Systems |
|
|
4 | (1) |
|
|
4 | (1) |
|
|
4 | (1) |
|
|
5 | (1) |
|
The Platform for Enterprise Solutions |
|
|
5 | (9) |
|
|
6 | (4) |
|
|
10 | (4) |
|
J2EE Application Scenarios |
|
|
14 | (7) |
|
Multitier Application Scenario |
|
|
16 | (2) |
|
Stand-Alone Client Scenario |
|
|
18 | (1) |
|
Web-Centric Application Scenario |
|
|
19 | (1) |
|
Business-to-Business Scenario |
|
|
20 | (1) |
|
How This Book Is Organized |
|
|
21 | (1) |
|
|
22 | (1) |
|
|
23 | (2) |
|
J2EE Platform Technologies |
|
|
25 | (26) |
|
|
25 | (7) |
|
|
26 | (1) |
|
|
27 | (1) |
|
Enterprise JavaBeans Components |
|
|
28 | (3) |
|
Components, Containers, and Services |
|
|
31 | (1) |
|
|
32 | (3) |
|
|
33 | (1) |
|
Application Component Provider |
|
|
33 | (1) |
|
|
34 | (1) |
|
|
34 | (1) |
|
|
34 | (1) |
|
|
34 | (1) |
|
|
35 | (7) |
|
|
35 | (1) |
|
|
36 | (1) |
|
|
37 | (3) |
|
|
40 | (2) |
|
|
42 | (3) |
|
|
42 | (1) |
|
Java Transaction API and Service |
|
|
43 | (1) |
|
Java Naming and Directory Interface |
|
|
43 | (1) |
|
J2EE Connector Architecture |
|
|
43 | (1) |
|
Java API for XML Processing Technology |
|
|
44 | (1) |
|
Communication Technologies |
|
|
45 | (5) |
|
|
45 | (1) |
|
Remote Method Invocation Protocols |
|
|
46 | (1) |
|
Object Management Group Protocols |
|
|
46 | (1) |
|
|
47 | (2) |
|
|
49 | (1) |
|
|
50 | (1) |
|
|
50 | (1) |
|
|
51 | (24) |
|
|
51 | (3) |
|
|
52 | (1) |
|
|
52 | (1) |
|
|
53 | (1) |
|
General Design Issues and Guidelines |
|
|
54 | (1) |
|
Design Issues and Guidelines for Browser Clients |
|
|
54 | (6) |
|
Presenting the User Interface |
|
|
55 | (1) |
|
|
56 | (2) |
|
Communicating with the Server |
|
|
58 | (1) |
|
Managing Conversational State |
|
|
59 | (1) |
|
Design Issues and Guidelines for Java Clients |
|
|
60 | (12) |
|
Presenting the User Interface |
|
|
61 | (3) |
|
|
64 | (1) |
|
Communicating with the Server |
|
|
65 | (4) |
|
Managing Conversational State |
|
|
69 | (3) |
|
|
72 | (1) |
|
|
73 | (2) |
|
|
75 | (54) |
|
The Purpose of the Web Tier |
|
|
75 | (1) |
|
|
76 | (15) |
|
Traditional Web-Tier Technologies |
|
|
76 | (2) |
|
Web-Tier Technologies in the J2EE Platform |
|
|
78 | (1) |
|
|
78 | (1) |
|
|
79 | (1) |
|
JavaServer Pages (JSP) Technology |
|
|
80 | (2) |
|
Web-Tier Technology Guidelines |
|
|
82 | (9) |
|
Web-Tier Application Structure |
|
|
91 | (3) |
|
Web-Tier Application Framework Design |
|
|
94 | (32) |
|
|
96 | (2) |
|
Web-Tier MVC Controller Design |
|
|
98 | (12) |
|
|
110 | (3) |
|
Web-Tier MVC Model Design |
|
|
113 | (1) |
|
Web Application Frameworks |
|
|
114 | (1) |
|
Separating Business Logic from Presentation |
|
|
115 | (1) |
|
|
116 | (7) |
|
Distributable Web Applications |
|
|
123 | (3) |
|
|
126 | (1) |
|
|
127 | (2) |
|
The Enterprise JavaBeans Tier |
|
|
129 | (42) |
|
Business Logic and Business Objects |
|
|
130 | (4) |
|
Common Requirements of Business Objects |
|
|
131 | (3) |
|
Enterprise Beans as J2EE Business Objects |
|
|
134 | (6) |
|
Enterprise Beans and EJB Containers |
|
|
136 | (4) |
|
Remote and Local Client Views |
|
|
140 | (2) |
|
Guidelines for Using Local or Remote Client Views |
|
|
141 | (1) |
|
Entity Beans and Local Client Views |
|
|
142 | (1) |
|
|
142 | (7) |
|
Guidelines for Using Entity Beans |
|
|
143 | (1) |
|
|
144 | (5) |
|
When to Use Bean-Managed Persistence |
|
|
149 | (1) |
|
|
149 | (4) |
|
|
150 | (1) |
|
|
151 | (2) |
|
|
153 | (3) |
|
Uses of Message-Driven Beans |
|
|
154 | (1) |
|
Example: Invoice Message-Driven Bean |
|
|
155 | (1) |
|
|
156 | (8) |
|
Remote versus Local Client Access for Entity Beans |
|
|
157 | (1) |
|
Session Beans as a Facade to Entity Beans |
|
|
157 | (1) |
|
Fine-Grained versus Coarse-Grained Object Access |
|
|
158 | (2) |
|
Master-Detail Modeling Using Enterprise Beans |
|
|
160 | (1) |
|
|
160 | (3) |
|
Implementing an Entity Bean without a Create Method |
|
|
163 | (1) |
|
Representing References to Entity Beans |
|
|
163 | (1) |
|
|
164 | (4) |
|
Typecast Remote References |
|
|
165 | (1) |
|
Mark Non-Serializable Fields Transient |
|
|
165 | (1) |
|
Bean-Managed Persistence and Portability |
|
|
166 | (2) |
|
|
168 | (2) |
|
|
170 | (1) |
|
Integrating with the Enterprise Information System Tier |
|
|
171 | (30) |
|
|
172 | (4) |
|
An Internet E-Store Application |
|
|
172 | (2) |
|
An Intranet Human Resources Application |
|
|
174 | (1) |
|
A Distributed Purchasing Application |
|
|
174 | (2) |
|
An Order Fulfillment Application |
|
|
176 | (1) |
|
J2EE Integration Technologies |
|
|
176 | (5) |
|
J2EE Connector Architecture |
|
|
177 | (2) |
|
|
179 | (1) |
|
|
180 | (1) |
|
Application Integration Design Approaches |
|
|
181 | (5) |
|
|
182 | (1) |
|
|
183 | (2) |
|
|
185 | (1) |
|
|
185 | (1) |
|
Developing an Integration Layer |
|
|
186 | (13) |
|
Programming Access to Data and Functions |
|
|
187 | (1) |
|
Using Tools for EIS Integration |
|
|
187 | (1) |
|
Developing EIS Access Objects |
|
|
188 | (5) |
|
Guidelines for Connection Management |
|
|
193 | (3) |
|
|
196 | (3) |
|
|
199 | (1) |
|
|
200 | (1) |
|
|
201 | (50) |
|
|
201 | (2) |
|
|
203 | (4) |
|
Application Component Provider Tasks |
|
|
204 | (2) |
|
Application Assembler Tasks |
|
|
206 | (1) |
|
|
206 | (1) |
|
Packaging J2EE Application |
|
|
207 | (16) |
|
|
210 | (1) |
|
EJB Module Packaging Guidelines |
|
|
210 | (4) |
|
|
214 | (1) |
|
Packaging Components into Web Modules |
|
|
215 | (7) |
|
Application Client Modules |
|
|
222 | (1) |
|
|
222 | (1) |
|
|
223 | (19) |
|
|
223 | (2) |
|
Specifying Deployment Descriptor Elements |
|
|
225 | (14) |
|
Naming Convention Recommendations |
|
|
239 | (3) |
|
|
242 | (7) |
|
|
242 | (2) |
|
Deployment Tool Requirements |
|
|
244 | (5) |
|
|
249 | (1) |
|
|
250 | (1) |
|
|
251 | (28) |
|
|
251 | (5) |
|
ACID Transaction Properties |
|
|
252 | (1) |
|
|
253 | (1) |
|
|
253 | (1) |
|
|
253 | (2) |
|
Two-Phase Commit Protocol |
|
|
255 | (1) |
|
J2EE Platform Transactions |
|
|
256 | (3) |
|
Accessing Multiple Resources within a Transaction |
|
|
256 | (2) |
|
Transactions across Servers |
|
|
258 | (1) |
|
J2EE Transaction Technologies |
|
|
259 | (1) |
|
|
260 | (1) |
|
Web Tier Transaction Guidelines |
|
|
261 | (1) |
|
Enterprise JavaBeans Tier Transactions |
|
|
262 | (6) |
|
Bean-Managed Transaction Demarcation |
|
|
263 | (1) |
|
Container-Managed Transaction Demarcation |
|
|
264 | (1) |
|
|
264 | (2) |
|
Enterprise JavaBeans Tier Transaction Guidelines |
|
|
266 | (2) |
|
|
268 | (5) |
|
|
268 | (1) |
|
Resource Manager Local Transactions |
|
|
269 | (1) |
|
EIS Tier Transaction Guidelines |
|
|
269 | (1) |
|
Compensating Transactions |
|
|
269 | (3) |
|
|
272 | (1) |
|
Performance with Multiple Resource Managers |
|
|
273 | (1) |
|
J2EE Resource Manager Types |
|
|
273 | (3) |
|
|
273 | (1) |
|
|
274 | (1) |
|
J2EE Connector Architecture |
|
|
274 | (2) |
|
|
276 | (1) |
|
|
277 | (2) |
|
|
279 | (32) |
|
Security Threats and Mechanisms |
|
|
279 | (1) |
|
|
280 | (13) |
|
|
281 | (3) |
|
Authentication Mechanisms |
|
|
284 | (8) |
|
Authentication Call Patterns |
|
|
292 | (1) |
|
Exposing Authentication Boundaries with References |
|
|
293 | (1) |
|
|
293 | (11) |
|
Declarative Authorization |
|
|
294 | (1) |
|
Programmatic Authorization |
|
|
295 | (1) |
|
Declarative Versus Programmatic Authorization |
|
|
296 | (1) |
|
|
296 | (1) |
|
Affects of Identity Selection |
|
|
297 | (1) |
|
Encapsulation for Access Control |
|
|
297 | (1) |
|
Controlling Access to J2EE Resources |
|
|
298 | (4) |
|
|
302 | (2) |
|
|
304 | (3) |
|
|
304 | (1) |
|
Confidentiality Mechanisms |
|
|
305 | (1) |
|
Identifying Sensitive Components |
|
|
305 | (1) |
|
Ensuring Confidentiality of Web Resources |
|
|
306 | (1) |
|
|
307 | (1) |
|
|
308 | (1) |
|
|
309 | (2) |
|
J2EE Internationalization and Localization |
|
|
311 | (36) |
|
Internationalization Concepts and Terminology |
|
|
312 | (4) |
|
Internationalization, Localization, and Locale |
|
|
312 | (1) |
|
|
313 | (1) |
|
|
314 | (2) |
|
Using J2SE Internationalization APLs in J2EE Applications |
|
|
316 | (5) |
|
|
316 | (3) |
|
|
319 | (1) |
|
|
320 | (1) |
|
|
320 | (1) |
|
Web Tier Internationalization |
|
|
321 | (11) |
|
Tracking Locales and Encodings |
|
|
321 | (4) |
|
Presentation Component Design |
|
|
325 | (2) |
|
Internationalizing and Localizing JSP Pages |
|
|
327 | (5) |
|
EIS Tier Internationalization |
|
|
332 | (4) |
|
Persistent Localized Data |
|
|
332 | (2) |
|
Internationalizing Database Schema |
|
|
334 | (2) |
|
Internationalized Application Design |
|
|
336 | (1) |
|
Internationalizing Applications with XML |
|
|
337 | (4) |
|
Generating Localized Dynamic Content with XSLT |
|
|
337 | (1) |
|
Communicating Locale within an Application |
|
|
338 | (1) |
|
Communicating Locale among Applications |
|
|
338 | (3) |
|
Localizing Error and Logging Messages |
|
|
341 | (4) |
|
Client Messages and Application Exceptions |
|
|
341 | (3) |
|
System Exceptions and Message Logging |
|
|
344 | (1) |
|
|
345 | (1) |
|
|
345 | (2) |
|
Architecture of the Sample Application |
|
|
347 | (38) |
|
J2EE Architecture Approaches |
|
|
348 | (4) |
|
Model-View-Controller Architecture |
|
|
348 | (2) |
|
|
350 | (2) |
|
Sample Application Overview |
|
|
352 | (1) |
|
Designing the Sample Application |
|
|
353 | (6) |
|
Choosing Application Tiers |
|
|
355 | (2) |
|
Choosing Local or Distributed Architecture |
|
|
357 | (2) |
|
Architecture of the Sample Application |
|
|
359 | (23) |
|
Application Web Site Architecture |
|
|
360 | (15) |
|
Fulfillment Center Architecture |
|
|
375 | (7) |
|
|
382 | (1) |
|
|
383 | (2) |
Afterword |
|
385 | (2) |
Glossary |
|
387 | (18) |
Index |
|
405 | |