|
|
EAR deployment
advantages, 584
alternatives to EAR deployment, 584
application.xml file, 584
disadvantages, 584
EJB JAR files, 584
JCA Resource Adapters, 584
packaging sample applications, 593
WARs, 584
Eclipse IDE
JUnit framework, 84
refactoring, 142
web site, 64
ECPerf
choosing application server, 49
edge side includes
see ESI.
edge site caching
Akamai, 671
Dynami, 671
ESI, 671
web tier performance, 671
EIS (Enterprise Information System) tier, 27
EJB (Enterprise JavaBeans)
accessing, 417
Business Delegate pattern, using, 423
direct EJB access, disadavantages, 417
JMS, using, 425
local vs.remote access, 417
Service Locator pattern, using, 418
transparent dynamic proxy, using, 422
authorization, 213
both local and remote interfaces, 224
Cactus testing tool, 99
CMT attributes, listing, 382
compared to TopLink, 315
component interface & bean implementation class.
synchronizing, 386
business methods interface ‘pattern’, using, 386
consuming messages, 229-32
data access in EJB tier, 273
declarative configuration management, 214
EJB (Enterprise JavaBeans) continued
disadvantages of, 214-22
entity beans in EJB 2.0, 294
error handling, 379
exceptions, listing, 381
how to use, 223-27
implementing, 410
abstract superclasses, deriving EJBs from, 410
distributed architecture, implementing, 209
SessionBean, implementing, 413
interface summary, 226
J2EE concerns related to EJB, 21, 676
load testing, 106
local interfaces, 99
logging in EJB tier, 165
O/R mapping limitations, 299
objectives, 223
phoney remote interfaces, 225
programming restrictions, 215
pros and cons of using in J2EE application, 22
read-only entity beans, 222
remote interfaces, 99
sample application, 222, 227
Singleton design pattern, 222
state management, 26
testing business objects, 93-100
transaction management, 210-13
use of, 19-24
when to use, 209-23
EJB class loader, 586
EJB Command design patterns, 374
implementing in distributed J2EE applications using
SLSB, 374
advantages & disadvantages, 377
Command objects, constructing/executing, 375
Command/~Executor example, 375
CommandExecutor interface required, 375
executeCommand() from client-side, example, 377
using commands without EJB Command, example, 378
implications of using EJB, 21
moving data to operation, 656
EJB containers
entity beans guidelines, 307
scheduling, 222
EJB JAR files, 584
compared to WARs, 595
description, 584
EAR deployment, 584
packing sample applications, 594
EJB QL (EJB Query Language), 39
code portability, 264
EJB 2.0 CMP, 298
problems with, 298
SQL compared, 298
<b>ejbActivate() method
EJB cannot invoke on SLSB, 414
SFSB reactivation, implementing, 367
example, 367
EJBContext interface, javax.ejb, 386
setRollbackOnly() method, 386
sub-interfaces, 386
ejbCreate() method, 230, 292
business interfaces, implementing, 433
defined as abstract, 414
method naming, 295
SFSB passivation/reactivation example, 367
SLSB (stateless session beans) pooling, 365
EJBException runtime wrapper exception, javax.ejb, 381
EJBGen code generator, 66, 306
ejbHome() methods
entity beans guidelines, 307
method naming, 295
ejbLoad() method, 303
data loading and storage, 300
database locking, 302
persistence, 292
ejbPassivate() method
EJB cannot invoke on SLSB, 414
SFSB passivation, implementing, 366
example, 367
ejbRemove() method, 292
ejbSelect() method
CMP entities, 295
home interface business methods, 300
EJB-specific configuration
proprietary deployment descriptors, 599
ejbStore() method, 303
data loading and storage, 300
entity state, 301
persistence, 290, 292
EL
see Expression Language.
Embeded SQL
SQLJ structure, 313
encapsulation
multiple parameters, 124
endline comments, 160
Enterprise Archive deployment
see EAR deployment.
entity beans
BMP or CMP, 292
BMP/CMP hybrids and persistence, 300
business logic, 290
caching, 300
caching for performance, 246
compared to JDO, 317
concerns, 286
container managed relationships, 296
data access, 274, 285-308
data access technologies, 25
definition, 287
EJB 2.0 CMP, 296
EJB 2.0 enhancements, 294
fine or coarse grained, 288
granularity debate, 288
guidelines summary, 307
hand authoring, 306
home interface business methods, 295
locking strategies, 301-2
objectives, 286
performance, 19, 305
read-mostly entities, 302
read-only entities, 302
remote interfaces, 295
reservations, 308
sequence entity beans, 271
session bean mediation, 291
session beans accessing, 287
tool support, 306
error handling, 379
see also exception handling,
avoiding NullPointerExceptions, 157
EJB, 379
application/system exceptions, handling, 380
exceptions, listing, 381
session bean design/implementation guidelines, 380
improving error messages, 77
JSP custom tags, 495
refactoring, 142
sample application user interface, 185
test cases, 80
error return codes
checked exceptions compared, 127
Errors Interface, com.Interface21.validation package, 498
rejectValue() method, 498
ESI
edge site caching, 671
Java support for ESI, 671
events
listeners, 123
exception handling, 125-32
see also error handling.
ApplicationException class, 321
chainable exceptions, 130
declarative exception handling, 461
good pratice, 128
J2EE exceptions, 130
Java tutorial, 125
JDBC (Java DataBase Connectivity), 320
problems with, 327
JDBC abstraction framework, 327, 334
DataAccessException class, 328
JDBC specific exceptions, 329
converting JDBC exceptions to generic exceptions, 331
making exceptions informative, 131
MDBs, 230, 231
nested exceptions, 130
DataAccessException class, 328
protecting interface code, 131
SQLException class, 320, 322, 327
limitations, 327
SQLWarning class, 323
exceptions
application/system, EJB handling, 380
checked exceptions, 328
EJB exceptions, listing, 381
GreateException/Remove~, 381
EJBException, 381
finderException, 382
expected behavior, 80
runtime exceptions, 328
unchecked exceptions, 110
exclusive locking, 301
execute() method, Action class, 458
parameters, 458
execute() method, Action Interface, 463
execute() method, AvailabilityQuery class, 326
execute() method, Command Interface, 375
EJB Command, implementing using SLSB, 375
example, 376
execute() method, Query Interface, 318
execute() method, SqlQuery class, 345, 357, 645
executeCommand() method, CommandExecutor
Interface, 375
EJB Command, implementing using SLSB, 375
client-side execution example, 377
example, 376
Expires header
cache control HTTP headers, 666
exposeModelsAsContextAttributes() method, VelocityView class, 693
exposeModelsAsRequestAttributes() method, InternalResourceView class, 690
Expression class
TopLink, 316
Expression Language
JSTL, 533
syntax, 542
extended deployment units
packaging J2EE applications, 585
extensibility
decoupling components, 122
enterprise architecture goals, 17
using callbacks, 120
extension mechanism for Java
see Java 1.3 extension mechanism.
Externalizable Interface, Java.io package
custom serialization, 661
readExternal() method, 661
writeExternal() method, 661
extract() method, ManualExtractionSqlQuery class,
345
performing queries, 348
|
|