search for books and compare prices
Tables of Contents for Enterprise Javabeans Components Architecture
Chapter/Section Title
Page #
Page Count
Preface
xvii
About the Front Cover
xvii
Acknowledgements
xix
Introduction
2
10
What is the Enterprise JavaBeans Architecture?
3
1
How This Book is Organized
4
2
Our Vision
6
1
Reader Audience
7
1
About the Examples
7
3
Source Code Online
10
2
Enterprise JavaBeans Overview
12
22
The J2EE Architecture
14
1
The J2EE Components
15
3
Enterprise JavaBeans (EJB)
15
1
Java Servlets
15
1
JavaServer Pages (JSP)
15
1
Java Naming Directory Interface (JNDI)
16
1
Java Database Connectivity (JDBC)
16
1
Java Message Service (JMS)
16
1
Java Transaction API (JTA)
16
1
Java API for XML (JAXP)
17
1
JavaMail
17
1
J2EE Connector API
17
1
Java Authentication and Authorization Service (JAAS)
17
1
J2EE Reference Implementation
17
1
Remote Method Invocation (RMI)
18
1
Java Interface Definition Language (IDL)
18
1
The J2EE Application Server
18
2
Containers and Services
18
2
Enterprise JavaBeans
20
11
Session Beans
20
1
Stateless Session Beans
21
1
Stateful Session Beans
22
1
Entity Beans
23
2
Bean-Managed Persistence (BMP)
25
1
Container-Managed Persistence (CMP)
26
1
Entity Relationships
26
1
Message-Driven Beans
26
1
Using JMS
26
2
Clients and Interfaces
28
1
Home and Remote Interfaces
29
1
Local Home and Local Interfaces
30
1
Key Point Summary
31
3
Stateless Session Beans
34
50
Introducing Stateless Session Beans
35
1
The Loan Enterprise Bean
36
19
Enterprise Session Bean Structure
38
1
Home Interface
39
2
Remote Interface
41
1
LoanObject Exception
42
1
Value Objects
42
1
LoanVO Class
43
2
PaymentVO Class
45
2
Bean Implementation Class
47
4
Compiling, Packaging, and Deployment
51
1
Compiling
51
1
Packaging
52
3
Deployment
55
1
Stand-alone Java Application Client
55
8
Compiling and Packaging the Client Application
61
1
Compiling
61
1
Packaging
61
1
Running the Stand-alone Java Client Application
62
1
Starting the J2EE Application Server
62
1
Deployment
63
1
Running the J2EE Application Client
63
1
Web Component Client (JSP)
63
16
Introducing Servlets and JSP
64
1
HttpServlet Class
64
1
JSP Engine
64
1
JSP Comments
65
1
Declarations
65
1
Scriptlets
65
1
Expressions
66
1
Implicit Objects
66
1
JSP Directives
67
1
The JSP payment Client
67
2
paymentGet.jsp
69
3
paymentPost.jsp
72
4
The Role of a JSP Client
76
1
Packaging the Web Component
77
1
Running the Web Client
78
1
Design Guidelines and Patterns
79
2
Business Object
79
1
Controller
79
1
Enterprise Bean
79
1
Model
80
1
Session Bean
80
1
Value Object
80
1
View
80
1
Key Point Summary
81
3
Session Beans With JDBC
84
52
Session Beans and JDBC
85
9
Database Fundamentals
87
1
Music Collection Database
87
1
Introducing JDBC
88
1
Statment Object
89
1
ResultSet Object
90
1
PreparedStatement Object
91
1
JDBC Code Sample
91
3
Music Stateless Session Bean
94
12
Home Interface
94
1
Remote Interface
94
1
NoTrackListException
95
1
RecordingVO Class
96
1
TrackVO Class
97
1
Bean Implementation Class
98
7
Deployment Descriptor
105
1
A Java Swing Application Client
106
4
JSP Web Component Client
110
9
musicGet.jsp
111
4
musicPost.jsp
115
3
error.jsp
118
1
Data Access Object Pattern
119
14
DAO Pattern Implementation
121
1
MusicBean
122
2
Naming Environment Entry
124
1
MusicDAOFactory
124
2
MusicDAO
126
1
MusicDAOSysException
126
1
MusicDAOCloudscape
127
6
Design Guidelines and Patterns
133
1
DAO Pattern
133
1
Factory Pattern
133
1
Connection Pooling
133
1
The Role of finally
133
1
Using Exceptions with EJBs
134
1
Key Point Summary
134
2
Stateful Session Beans
136
62
Introducing Stateful Session Beans
138
2
Stateful Session Passivation and Activation
138
2
MusicCart Stateful Session Bean
140
9
The Big Picture
140
2
CustomerVO
142
1
Home Interface
143
1
Remote Interface
144
1
Bean Implementation
145
3
Deployment Descriptor
148
1
Value List Iterator Pattern
149
16
MusicPage Stateless Session Bean
152
4
Deployment Descriptor
156
1
Musiclterator Stateful Session Bean
157
6
Deployment Descriptor
163
1
Invocation Patterns
164
1
Web Component Client
165
21
login.jsp
170
2
loginPost.jsp
172
2
musicCart.jsp
174
6
shoppingPost.jsp
180
5
Deployment Descriptor
185
1
Local Interface
186
7
Local Interface Implementation
187
2
Local Home Interface
189
1
Local Interface
190
1
Bean Implementation Class
190
1
Musiclterator Client
191
1
Deployment Descriptor
191
2
Design Guidelines and Patterns
193
2
Value List Iterator Pattern
193
1
Stateful vs. Stateless Session Beans
194
1
Local Interfaces
195
1
JSP Web Clients
195
1
Key Point Summary
195
3
Entity Beans With BMP
198
78
Introducing Entity Beans
200
3
Properties of Entity Beans
200
1
Persistent and Shareable
200
1
Local and Remote Interfaces
201
1
EJB Methods and Database Access
201
1
Primary Key and Finder Methods
202
1
Create Methods
202
1
Home Methods
202
1
EJB Methods
203
1
Customer Entity Bean
203
39
The Big Picture
203
2
Structure of Entity Beans
205
2
Home and Local Home Interfaces
207
3
Remote and Local Interfaces
210
2
The Role of the EJB Container
212
1
Optimizing Stores
212
1
Method Calls
213
2
DAO Pattern Implementation
215
1
Customer Model
215
3
Customer DAOSysException
218
1
CustomerDAO
219
1
CustomerDAOCloudscape
220
11
CustomerDAOFactory
231
1
Bean Implementation
232
8
Deployment Descriptor
240
2
Entity Bean Test Client
242
4
Transaction Overview
246
4
Properties of Transactions
247
1
Transactions Within the J2EE Platform
248
2
Transactions Within the Music Collection Application
250
1
Session Facade Pattern
250
12
Home Interface
252
1
Remote Interface
253
1
Application Exceptions
254
1
Bean Implementation
255
6
Deployment Descriptor
261
1
Web Component Client
262
10
login. jsp
264
1
signUp.jsp
264
2
signUpPost.jsp
266
3
loginPost.jsp
269
3
Design Guidelines and Patterns
272
2
Using BMP
272
1
DAO Pattern
272
1
Local Interfaces
273
1
Transactions
273
1
Session Facade Pattern
273
1
Entity Bean Testing
274
1
Key Point Summary
274
2
Entity Beans With CMP
276
92
Introducing Container-Managed Persistence
278
21
Properties of CMP Entity Beans
278
1
Abstract Persistence Schema
279
3
Relationship Multiplicity
282
2
Relationship Navigability
284
1
Life Cycle Relationships
285
1
Cascading Deletes
286
1
Access Methods for Persistent Fields
287
1
Access Methods for Relationship Fields
288
2
Custom Finder and Select Methods
290
1
Finder Methods
290
2
Select Methods
292
2
Introducing the EJB Query Language
294
1
Select Clause
295
1
From Clause
295
1
Where Clause
296
1
Navigating to Related Beans
296
1
Query Language Examples
297
2
The Three Entity Beans
299
30
The Big Picture
299
1
Structure of CMP Entity Beans
299
2
Line Item Entity Bean
301
2
Local Home Interface
303
1
Local Interface
304
1
Primary Key Generation
304
1
Bean Implementation
305
3
Generated SQL for Container Methods
308
1
EJB Query for Custom Finders
309
1
Container-Managed Persistence
309
2
Container-Managed Relationships
311
1
Order Entity Bean
312
1
Local Home Interface
312
2
Local Interface
314
1
Bean Implementation
314
3
Generated SQL for Container Methods
317
1
EJB Query for Custom Finders
318
1
Container-Managed Persistence
318
2
Container-Managed Relationships
320
1
Customer Entity Bean
321
1
Local Home Interface
321
1
Local Interface
322
1
Bean Implementation
323
3
Generated SQL for Container Methods
326
1
EJB Query for Finder and Select Methods
327
1
Container-Managed Persistence
328
1
Container-Managed Relationships
329
1
Session Facade Pattern
329
22
Value Object Pattern Revisited
331
1
LineltemVO
332
1
OrderVO
332
2
Customer Session EJB
334
1
Home Interface
334
1
Remote Interface
335
2
Bean Implementation
337
12
Deployment Descriptor
349
2
Entity Beans and Session Beans Revisited
351
1
Web Component Client
351
9
processOrder.jsp
353
3
submitOrder.jsp
356
4
Administrator Client
360
3
AdminClient.java
360
3
Design Guidelines and Patterns
363
2
Using CMP
363
1
Local Interfaces
363
1
Transactions
364
1
Session Facade Pattern
364
1
Value Object Pattern
364
1
Administrative Client
364
1
Key Point Summary
365
3
Message-Driven Beans
368
47
Messaging Architectures
369
3
Introducing JMS
372
14
Messaging Domains
372
1
Publish/Subscribe
372
1
Point-to-Point
373
1
JMS Building Blocks
374
1
Topic Messaging
375
1
TopicConnectionFactory and Topic
375
1
TopicConnection and TopicSession
376
1
TopicPublisher (Producer Side)
377
1
Message Types
377
2
TopicSubscriber (Consumer Side)
379
1
The on Message() Method
380
1
Queue Messaging
381
4
JMS Deployment Descriptors
385
1
Designing Message-Driven Beans
386
6
Message Bean Structure
387
3
Message Bean Life Cycle
390
1
Exceptions with Message Beans
391
1
Student Message-Driven Bean
392
11
School Client
393
5
Student Message Bean
398
3
Deployment Descriptors
401
2
ShipOrder Message-Driven Bean
403
8
OrderApp Client
405
2
ShipOrder Message Bean
407
2
Deployment Descriptors
409
2
Design Guidelines and Patterns
411
2
Java Message Service (JMS)
411
1
Publish/Subscribe Pattern
411
1
Point-to-Point Pattern
411
1
Publish/Subscribe vs. Point-to-Point
411
1
Message-Driven Beans
412
1
When to Use Message-Driven Beans
412
1
Transactions
413
1
Key Point Summary
413
2
APPENDIX A
415
8
A.1 MusicApp Swing Application
415
8
Index
423
<