Cover | Table of Contents | Index | Sample Chapter | Colophon
Index
[ A ], [ B ], [ C ], [ D ], [ E ], [ F ], [ G ], [ H ], [ I ], [ J ], [ K ], [ L ], [ M ], [ N ], [ O ], [ P ], [ Q ], [ R ], [ S ], [ T ], [ U ], [ V ], [ W ], [ X ], Chapter 9 9 Symbols
<%@ > directives, 82
<%- %> expression tag, 81
<% %> tag, 81
<%! %> tag, 83
<%= %> tag, 81
& (ampersand), combining with search filter, 278
* (asterisk) wildcard character in LDAP searches, 278
| (vertical bar), | (OR) operator, combining with search filter, 278
A[ Top ]
abstract persistence schema, entity beans, 174
acceptChanges( ) (CachedRowSet), 248
Account interface (example), 377
defining and implementing, 387
AccountClient class (example), 381
AccountImpl class (example), 378
implementation of Account class, 388
AccountReg class (example), 380
ACID properties, transactions, 477
acknowledge( ) (Message), 318
Action class, Struts, 596-604
RequestProcessor, 598
action tags, JSPs, 85
JavaBeans and, 86
ActionForm class, Struts, 604
<f:actionListener> JSF core tag, 741
ActionServlet, Struts and, 594
Activatable class, 388, 389, 399, 400
constructors, 401
activating
activation groups, 399
defining activatable objects, 400
passing arguments to activatable objects before activation, 406
registering activatable objects, 404
registering objects, 404
RMI activation service, features of, 399
rmid activation daemon, 410
ActivationDesc class, 405
ActivationGroup class, 407
entire group, becoming inactive, 408
ActivationGroupDesc class, 408
ActivationGroupID class, 408
ActivationID class, 401, 402
ActivationMonitor class, 408
Activator interface
activatable objects registry, 409
active object references, transferring, 407
activeObject( ) (ActivationGroup), 408
addBatch( )
CallableStatement interface, 237
PreparedStatement interface, 237
Statement interface, 236
addNamingListener( ), EventContext and EventDirContext, 284
addRowSetListener( ) (RowSet), 248
aggregate functions, SQL, 779
AlreadyBoundException class, 390
ALTER TABLE statement (SQL), 771
AND operator, combining search filter with, 278
annotations
introduction, 656
J2SE tutorial, 676-686
tools, 658
XDoclet, 658
custom, 676
deployment descriptors, 662-669
processing, 659-661
ANSI-92 SQL state codes, 233
Ant, 15
application assemblies, 528
application deployment, 529-532
buildfiles, 503
portability, 532-539
properties, 506-509
targets, 504
builds, unit tests, 555
component deployment, 529-532
introduction, 501
JUnit and, 554-561
batch testing, 558
test result format, 559
overview, 502-503
property files, 533
targets, modular, 535
tasks
directory tasks, 509-514
enterprise, 522
file tasks, 509-514
Java tasks, 514-518
utilities, 519
versions, 502
Apache
Ant and, 15
Cocoon content management system, 214
Xalan (XSLT transformer), 215
Xerces parser, 199
XML project, 199
Apache Struts (see Struts)
APIs, 5
Cactus (see Cactus)
distributed computing and, 10
Enterprise JavaBeans and, 12, 131
Hibernate API
configuration and, 640
events, 648
interceptors, 647
Query class, 646
Session object, 641-646
SessionFactory, 640
IDL, 11
J2EE security, 6
JAAS (see JAAS)
JACC, 292
Java RMI, 11
JavaMail (see JavaMail)
JAXP, 6
JAX-RPC (see JAX-RPC)
JCE, 292
JDBC (see JDBC)
JMS (see JMS)
JNDI, 9
JSF, 102
JSP, 79
JTA, 9, 187
JUnit (see JUnit)
messaging, 13
SAAJ (see SAAJ)
Servlet API, 7, 46
web UIs, 7
appendChild( ), 211
applets, 26
classes, loading, 395, 398
deployment, Java drivers and, 222
JDBC-ODBC Bridge, requirements for using, 223
application archives, 27
deployment descriptors, 730-732
application assembly, 28-29, 38
Ant, 528
example, 40
module declaration, 39
security, 39
application clients, 26
application layer security, 289
authentication, 291
authorization, 291
declarative vs. programmatic, 294
applications, 234
database, debugging, 234
object references (application-specific), 444
server, network hardware and, 4
web applications, 51-53
structure, 52
application.xml, deployment descriptors, 730-732
archives, application archives, 27
arguments
IDL methods, 818
initialization constructors, 401
remote methods, 392
arithmetic operators, 764
JMS message selectors, 785
arrays
IDL, 805
update counts, 236
assembling applications, Ant, 528
assembly, introduction, 25
assertion methods (JUnit), 548
attachments to email messages, 473
<f:attribute> JSF core tag, 742
attributes
Attributes interface, 202
DOM, 208, 211
IDL interfaces, 817
parsing with SAX, 204
authentication, 292
application layer security, 291
Authenticator class, 460
client connections to JMS provider, 317
EJB-tier, 305
JAAS and, 305
JNDI and, 254
usernames and passwords, 461, 467
web-tier, 296
Authenticator class, 460
final methods for information about an authentication request, 461
authorization, 292
application layer security, 291
EJB-tier, 305
auto-commit mode (transactions), 236, 242
Axis deployment model, 372
B[ Top ]
backing beans, JSF, 106
BAD_PARAM class, 443
base document element (XML), 213
batch testing, JUnit and Ant, 558
batch updates (JDBC), 236
BatchUpdateException class, 236
bean implementation (EJBs), 140
binary large objects (see BLOBs)
bind( )
Context interface, 269
NamingContext interface, 439
Registry interface, 390
binding
languages to CORBA, 419
names to objects in naming service, 253
objects to contexts, 269
remote objects to names, 390
bindings
for naming events, 283
listing for JNDI context, 266
bind_new_context( ) (NamingContext), 439
black box testing, 543
BLOBs (binary large objects), 238-239
BMP (bean-managed persistence), 167
BMTD (Bean-Managed Transaction Demarcation), 490
body tags, JSP, 99
Boolean literals, IDL, 800
branch, CORBA naming directory, 421
browse command, 330
browsers, transforming XML into HTML for, 214
browsing
message queues, 331
naming systems, 265
buildfiles (Ant), 503
portability, 532-539
properties, 506-509
targets, 504
builds (Ant), unit tests, 555
built-in objects, JSP, 83
<fmt:bundle> JSTL tag, 93
business logic in EJB component model, 12
BytesMessage class, 323
C[ Top ]
CachedRowSet object, 248
caching in Hibernate, 652
Cactus, 16, 541
architecture, 562
asynchronous code testing, 581-582
model, 562
running tests, 583-587
test proxies, 564
testing enterprise components, 561
testing JSPs, 573-576
testing process, 563
testing servlet filters, 576-579
testing servlets, 568
writing tests, 567-573
call semantics, IDL methods, 820
CallableStatement interface, 225
stored procedures, 246
casting
CORBA remote objects to specific remote interfaces, 443
Node to Element object and adding attributes, 211
returned Context or DirContext for event source, 281
catch blocks (SQLException), 234
C/C++ languages
IDL interfaces, converting to Java, 417
Java and IDL syntax, modeled upon, 423
nonclass data structure definitions, 423
wrapping code with Java interface, 410
cd command (NamingShell application), 265
changed transactions, 480
character literals, IDL, 802
characters
char strings, 413
CLOBs (character large objects), 229, 238
IDL, 799
characters( ), 202
children of a context, listing, 262
<c:choose> JSTL tag, 91
ClassCastException class, 281
classes
activatable remote objects, 400
activation groups, 408
configuring clients and servers, 395
container-specific, 45
DII, 452
inner, 423
Java, IDL interfaces vs., 423
loading dynamically, 394
loading remote, 395
mapping, Hibernate configuration, 626
names for (JDBC), 233
public, 423
remote interface, implementing, 386
RMI, for remote object implementations, 388
security, 396
stubs and skeletons, generating, 414
classloading, models for deployment, 32
RMI, 383
classpath, 395
Ant, 514
local default class loader, 395
RMI registry, 397
clearBatch( ) (Statement), 236
clearBody( ) (Message), 324
clearParameters( ) (PreparedStatement), 235
clearProperties( ) (Message), 324
client interfaces (EJBs), 137
client stub interfaces (EJBs), 137
client stubs, 375, 379, 382, 384, 386
classes, loading, 395
classes, regenerating (RMI/IIOP), 414
compiling, 379
configuring for remote class loading, 395
idltojava compiler, generating, 426, 431
Java to CORBA object, 413
language-specific, generating, 416
original objects, changing, 393
relationships with skeletons and remote objects, 386
remote object classes, 443
remote objects, not instantiated, 406
RemoteObject as superclass for, 388
RMI architecture, 383
clients
authenticated JMS connections, 317
distinguishing from servers in distributed object system, 382
EJB client, 134
factory classes, 393
freeing resources from connections and sessions, 320
general setup, 316
identifiers for, 316
Java IDL (CORBA), 434
as Java objects (RMI), 376
JMS, 316
key interfaces, 314
looking up remote object and calling method on it, 381
messaging, 313
point-to-point messaging, 325
receiving messages, 319
remote method arguments and return values, 392
remote method requests, server objects, 451
RMI, 386, 390
RMI registry and naming services, 390
sending messages, 318
sessions, 317
setting RMISecurityManager for class loading, 397
SMTP, 457
stringified object reference, using, 448
temporary destinations, creating, 320
web services
DII approach, 355
dynamic proxy approach, 353
static proxy approach, 350
writing, 349
CLOBs (character large objects), 229, 238
Clob class, 239
cloneNode( ) (Node), 211
cloning a message, 470
close( )
Connection interface, 223, 321
Folder class, 470
Session interface, 320
clusters, RDBMS, 768
CMP (container-managed persistence), entity beans (EJBs), 172-183
CMR (container-managed relationship) fields, 758
EJB relationships, 180
CMTD (container-managed transaction demarcation), 490, 495
EJBs, transactions and, 187, 492
code annotations (see annotations)
code compile, Ant tasks, 516
codebase for non-default class loader classes, 395
collection member variables
EJB QL, 758
collection types, Hibernate configuration, 628
<h:column> JSF HTML tag, 749
columns
data types, 228
Java objects, storing in database tables, 233
null values in, 229
values, retrieving, 227
<h:commandButton> JSF HTML tag, 749
<h:commandLink> JSF HTML tag, 749
commands
rmid, 791
rmiregistry, 793
SQL
data manipulation, 773-778
DELETE, 778
INSERT, 777
schema manipulation commands, 770-772
SELECT, 773
UPDATE, 778
comments
IDL, 798
XML, ignoring with DOM parser, 206
commit( )
Connection interface, 242
XASession class, 334
commit phase, distributed transactions, 483
committing transactions, 242
auto-commit mode, 242
communication protocols
comparison operators
EJB QL statements, 764
SQL statements, 774
IIOP, 422
IMAP and POP-3, 467
JRMP, 376
POP and SMTP, 457
communication protocols (continued)
SOAP, 338
transport protocol layer, RMI, 382
comparison operators, 764
JMS message selectors, 785
compiling code, Ant tasks, 516
component model, EJB, 12
component modules
assembly, 36
deployment descriptors, 35
EJB, 36
jar files, 34
web, 38
component references, deployment descriptors and, 703-707
components, 26
deployment and, 32
compound names, 264
CompoundName class, 264
concurrency
support information, 232
transactions, optimistic, 488
conditional expressions
arithmetic operators, 764
EJB QL functions, 764
functions, comparison operators, 764
logical operators, 764
configuration
Hibernate
class mapping, 626
collection types, 628
global configuration, 622
polymorphic mappings, 636-639
relationship mappings, 629-635
types, 625
Hibernate API, 640
JNDI services, 29
naming conventions, 30
JSF, 105
Struts, 600
configuration information in database metadata, 240
connect( ) (Service), 466
Connection interface, 221, 223
createStatement( ), 225
isolation modes, listed, 242
JMS provider connections, 315
setSavepoint( ), 244
transactions (JDBC), managing, 242
connection pooling, 243
ConnectionFactory interface, 314, 315
ConnectionPoolDataSource interface, 224
connections, database, 223
pooling, 224
connections to JMS provider, closing at session end, 320
constants, IDL, 799
InitialContext, 252
mapping to Java, 800
constructors, 378
Activatable class, 401
activatable objects, 402
ActivationDescr class, 408
for remotely loaded classes, 407
in server implementation, 399
NameComponent class, 439
reactivation, 401
remote object, initializing, registering, activating, 400
RMI implementation classes, throwing RemoteException, 388
container-managed persistence (see CMP)
container-managed relationship (see CMR)
containers, 26
EJB session beans, 158
EJBs, 12, 134
servlet containers, 47
content management systems, 214
ContentHandler interface, 201, 216
Context interface, 250, 452
keys for JNDI property names, 252
rebind( ) method, 415
context values, IDL methods, 819
contexts
binding objects to, 269
browsing a naming system, 265
creating and destroying, 267
JNDI, 253
listing bindings of, 266
listing children for, 262
looking up objects, 255
naming system providers, 255
<f:convertDateTime> JSF core tag, 742
<f:converter> JSF core tag, 743
<f:convertNumber> JSF core tag, 742
cookies, 71
CORBA, 376
adding objects to NamingContext, 439
architecture, 419
creating objects, 422
DII API, 451
distributed object services, 417
DSI API, 451
IDL, 417
IIOP, 414, 422
IORs, 445
language independence, 376
Naming Service, registering server object with, 437
object references, narrowing, 443
ORBs, 435
remote classes, finding, 443
remote object references, 442
RMI objects, accessing from, 416
RMI with JNI vs., 413
root object class, 442
CREATE TABLE statement (SQL), 770
createAttribute( ) (Document), 211
createAttributeNS( ) (Document), 211
createConsumer( ) (Session), 315
createDurableSubscriber( ) (TopicSession), 315, 332
createElement( ) (Document), 211
createElementNS( ) (Document), 211
createProducer( ) (Session), 315
createPublisher( ) (TopicSession), 315
createQueueBrowser( ) (QueueSession), 331
createQueueSession( ) (QueueConnection), 315
createReceiver( ) (QueueSession), 315, 319
createRegistry( ) (LocateRegistry), 391
createSender( ) (QueueSession), 315
createStatement( ) (Connection), 225, 230, 246
createSubcontext( )
Context interface, 267
DirContext interface, 276
createSubscriber( ) (TopicSession), 315
createTopicConnection( ) methods,TopicConnectionFactory, 315
createTopicSession( ) (TopicConnection), 315
Crimson parser, 199, 200
cross-database APIs, 219
cursor position (result sets), 231
customizing
JMS message properties, 322
URI resolution for XSL files, 217
D[ Top ]
data grids, JSF tables, 123
data manipulation statements, SQL, 773-778
data sources for multipart email messages, 473
data types
binary and character (large objects), 238
columns, returning (ResultSet), 228
custom message properties, 322
DatabaseMetaData methods, returning, 240
declaring, 424
IDL, 798
characters, 799
strings, 799
user-defined, 804-813
Java handling, 423
Java types corresponding to, 228
Java/SQL mapping, 235
large, 229
object, Java handling of, 423
primitive, 227
relational databases and, 233
in remote method arguments, 392
serialization, 392
SOAP, mapping to Java, 346
SOAP messages and, 341
SQL, 769
stored procedures output, 245
streams of in messages, 323
WSDL, mapping to Java, 347
DatabaseMetaData interface, 239
scrolling and concurrency support, 232
databases, 218
accessing (result sets), 230
changes, losing, 242
commands, database-independent (JDBC), 246
configuration information, obtaining, 240
connections, 223
databases (continued)
creating, 221
differences among systems, 219
editing data, inserting and deleting rows (ResultSet), 231
Hibernate (see Hibernate)
insertions, preventing (transactions), 243
interacting with JDBC, 219
Java-aware, 232
JDBC drivers, 219, 221
null values, handling, 229
null values, inserting, 232
objects (Java types), inserting, 235
relational, 8
SQL and, 768
scalar functions, 246
SQL strings, processing, 235
stored procedures, 225, 244
tables, displaying contents of, 240
transactions, 241
update counts, getting, 226
updateable ResultSet, differences, 232
web applications, 75
DataSource interface, 224
<h:dataTable> JSF HTML tag, 749
dates and times, JDBC classes for, 230
date/time functions, SQL, 779
DCE-CIOP (DCE Common Inter-ORB Protocol), 422
debugging database applications, using warnings for, 234
declarations
IDL interfaces, 424
web components, deployment descriptors and, 696-698
XML, 194
declarative transactions, 488
DefaultHandler class, 203
defining
activatable remote objects, 399, 400
key RMI classes for implementations, 388
remote RMI objects, 386
writing class to implement remote interface, 388
delegates (CORBA remote object stubs), 430
DELETE statement (SQL), 778
deleteRow( ) (ResultSet), 232
deleting
message from IMAP store, 470
rows from ResultSet, 232
deployment
applications, Ant, 529-532
component references, 32
components (Ant), 529-532
EJBs, 142-150
entity beans, 164
security-related attributes, 145
introduction, 25
J2EE, 41
container-specific classes, 45
descriptors, 41
server-specific configuration, 42
JNDI configuration services, 29
message-driven EJBs, 185
physical, 34
resource references, 32
runtime classloding models, 32
web services, 363-374
Axis model, 372
J2EE, 364
Java implementation code, 363
deployment descriptors, 26, 143
application archives, 730-732
component modules, 35
EJBs, 131, 710-730
web components, 691-710
web services, 732-735
WSDL mappings, 735
XDoclet, 662-669
XML, 27
Destination interface, 315
destinations for messages, 313
addresses, 463
temporary, clients creating, 320
destroySubcontext( ) (Context), 268
development, Struts and, 591-593
development tools, 14-19
Ant, 15
Cactus, 16
Hibernate, 17
Java Annotation, 19
JUnit, 16
Struts, 16
XDoclet, 19
DII (Dynamic Invocation Interface), 419, 451, 452
web service clients, 349, 355
DirContext interface, 250
createSubcontext( ), 276
modifyAttributes( ), 274
directives in JSP, 82
directory services, 249
accessing, 270
creating directory entries, 276
modifying directory entries, 275
search command, 279
search controls, 278
search criteria, 277
search results, 278
searching a directory, 277
directory tasks (Ant), 509-514
directory trees, servlet context, 51
dirty reads (transactions), 243
DISTINCT option, SELECT clause, 760
distributed applications
remote interfaces, defining, 387
with Java and non-Java components, 377
distributed component model, 130
distributed computing
EJB component model, 12
garbage collection, 385
Java RMI, garbage collection, 376
transactions, 243
distributed objects
clients and servers, distinguishing, 382
CORBA standard services, 417
RMI, interacting with, 376
distributed transactions, 480
JMS destination, 496
scenarios, 481-483
two-phase commit, 483
Document class, 207
Document Type Definitions, 193
DocumentBuilder interface, 206, 211
DocumentBuilderFactory class, 199, 206
DocumentCondenser class (DOM example), 208
DocumentFragment class, 213
DOM (Document Object Model), 194, 205
element attributes, 208
extending trees, 211
getting a parser, 206
manipulating DOM trees, 208
navigating DOM tree, 207
DOMImplementation interface, 211
DOMParser class, 200
DOMResult class, 215
DOMSource class, 215
DriverManager class, 223
drivers, JDBC, 219, 221
currently available, listing of, 222
escape sequences, translating, 245
JDBC-ODBC Bridge, 221, 222
loading (example), 221
null values, 229
registering with DriverManager, 221
results sets (scrollable and updateable), 232
support levels, accommodating, 239
types, listing of, 221
DROP statement (SQL), 772
DSI (Dynamic Skeleton Interface) API, 419, 451
DTDs (Document Type Definitions), 193
orders.xml document (example), 195
validating XML document against with SAX parser, 203
DynaActionForms, Struts, 616
dynamic class loading (RMI), 394
configuring clients and servers for, 395
loading classes from applets, 398
Dynamic Invocation Interface (DII) API, 419, 451, 452
Dynamic Method Interface (CORBA), 442
dynamic proxy, web services clients, 349, 353
Dynamic Skeleton Interface (DSI) API, 419, 451
dynamic web pages, 8
E[ Top ]
ear files, 27
ear task, 528-529
e-commerce, 20
EJB (Enterprise JavaBeans), 130
bean implementation, 140
beans
creating, 152
finding, 152
client stub interfaces, 137
code artifacts, 133
EJB (Enterprise JavaBeans) (continued)
component model, 131
overview, 132
component modules, 36
components, 26, 130
container callbacks
message-driven beans, 184
containers, 134
deployment, 142-150
security-related attributes, 145
deployment descriptors, 131, 143, 710-730
distributed components, 12
distributed computing and, 12
enterprise computing scenarios, 23
e-commerce for mail-order business, enabling, 20-22
transactional integrity for e-commerce business, 22
entity beans, 133, 159
abstract persistence schema, 174
BMP, 167
CMP, 172-183
container callbacks, 163
deployment, 164
finder methods, 160
implementation, 162
lifecycle, 166
primary keys, 162
select methods, 161
handles, 153
home interfaces, 137
identities
deployment, 147
interfaces
client interfaces, 137
home interfaces, 139, 151
JTA (Java Transaction API), 187-190
local clients, 151
message-driven beans, 133, 183-187
container callbacks, 184
deployment, 185
object implementation, 137
packages, 149-150
remote clients, 151
session beans, 133
container management, 158
stateful, 155
stateless, 155
transaction support, 159
testing, Cactus, 579-581
transactions, 490
BMTD, 490
CMTD, 492, 495
session facade, 493
tutorial, 136-142
version 3.0, 190
version covered, 131
web services, 360
deployment, 371
EJB API, 131
EJB client, 134
EJB object, 132-134
EJB QL, 756
finder and select methods, 179
FROM clause, 757
collection member variables, 758
range variables, 758
functions, 763
conditional expressions, 764
ORDER BY clause, 766
query structure, 756
SELECT clause, 759
DISTINCT option, 760
WHERE clause, 761
literals, 761
variables, 762
ejb-jar files, 149-150
Ant buildfiles, 149
creating from bean classes, 149
ejb-jar.xml, deployment descriptors, 710-730
EJB-tier authentication, 305
EJB-tier authorization, 305
EL (Expression Language) (see JSF EL; JSPs, EL; JSTL EL)
element nodes, 207
elements, XML, 194
attributes (DOM), 208
parsing with SAX, 201, 203
email
basics of, 457
JavaMail and, 457
empty elements (XML), 194
encodings, web services, 344
endDocument( ), 201
enterprise computing, 4-5
mail-order enterprise, 20
scenarios, 20-23
enterprise tasks, Ant, 522-528
entity beans (EJBs), 133, 159
abstract persistence schema, 174
BMP, 167
CMP, 172-183
container callbacks, 163
deployment, 164
finder methods, 160
implementation, 162
lifecycle, 166
primary keys, 162
select methods, 161
entity reference nodes (XML), expanding (DOM parser), 206
enumerations, IDL, 808
environment entries, deployment descriptors and, 707-710
equals( ) (RemoteObject), 388
error( ) (ErrorHandler), 203
error handling
naming services, 282, 283
servlet responses
status codes, 59
servlet responses and, 59
ErrorHandler interface, 203
errors
binding remote objects to names, 390
in remote sessions, 387
JDBC, handling, 233
marshaling exception, 383
remote object URLs, 391
escape sequences, 246
components (JDBC), 246
dates (example), 230
dates (ISO), 230
stored procedures, accessing (JDBC), 245
event notification, JNDI, 281
listen command, 285
registering event listeners, 284
sources of events, 281
writing event listeners, 282
EventContext interface, 281
addNamingListener( ), 284
EventDirContext interface, 281
addNamingListener( ), 284
filters specifying target of listener, 285
events
asynchronous, JMS, 319
Hibernate API, 648
JSF user interface, 120
synchronicity in SAX parsing cycle, 203
exceptions
IDL, 424, 813
standard, 814
IDL methods, 819
JNDI, 253
name, object not found at specified, 444
object references, narrowing (CORBA), 443
objects, binding to NamingContext, 441
servlets, 60
execute( ) (Statement), 226
executeBatch( )
PreparedStatement interface, 237
Statement interface, 236
executeQuery( ) (Statement), 225
executeUpdate( )
PreparedStatement interface, 235
Statement interface, 226
expirable leases on remote objects, 385
exportObject( ) (Activatable), 401
using instead of initialization constructors, 402
expression tag, 81
expression tags, 81
expressions
message selectors (JMS), 786
nesting in searches, 278
expunge( ) (Folder), 470
F[ Top ]
<f:facet> JSF core tag, 743
factory classes
custom, client and server socket, 401
defining (example), 394
for remote object references, 393
for XML parsers, 200
factory objects, 444
failed tests (JUnit), 549
fatalError( ) (ErrorHandler), 203
file tasks (Ant), 509-514
FileDataSource class, 473
filesystem factory class (JNDI), 254
filtering
messages, 324
QueueBrowser, using, 331
filters
listener targets for naming services, 285
request dispatching, 68
filters (continued)
search filter strings, 277
servlets, 65-68
fixed-point literals, IDL, 801
flat transaction model (FTM), 479
floating-point literals
IDL, 801
flow control, JSTL, 91
folders, message, 466
<c:forEach> JSTL tag, 92
<h:form> JSF HTML tag, 750
forms
servlet requests, 55
Struts tags, 610-613
validation, JSF, 125
forName( ) (Class), 221
forward-only result sets, 230
fragments of documents (Document fragment nodes), 213
framework, Struts as, 589
FROM clause
EJB QL, 757
collection member variables, 758
range variables, 758
HQL, 649
FTM (flat transaction model), 479
functions
C/C++, invoking with Java methods, 412
conditional expressions
comparison operators, 764
EJB QL, 763
conditional expressions, 764
scalar (databases), 246
SQL
aggregate, 779
value functions, 779
G[ Top ]
garbage collection
distributed, for RMI objects, 376, 385
RMI, 385
generic property accessors, 322
get( ) (Attributes), 273
getAsciiStream( ) (ResultSet), 229
getAttributes( ) (Node), 208, 211
getAutoCommit( ) (Connection), 242
getBinaryStream( )
Blob class, 238
ResultSet interface, 229
getBytes( ) (Blob), 238
getCharacterStream( ) (Clob), 238
getClassName( ) (NameClassPair), 262
getColumnCount( ) (ResultSetMetaData), 241
getColumnLabel( ) (ResultSetMetaData), 241
getColumns( ) (ResultSetMetaData), 240
getColumnTypeName( ) (ResultSetMetaData), 241
getConnection( ) (DriverManager), 223
getDefaultFolder( ) (Store), 466
getDefaultInstance( ) (Session), 460
getDefaultTransactionIsolation( ) (DatabaseMetaData), 243
getDOMImplementation( ), 211
getErrorCode( ) (SQLException), 233
getFeature( ) (TransformerFactory), 217
getFirstChild( ) (Node), 208
getFlags( ) (Message), 470
getFloat( ) (CallableStatement), 246
getFolder( ) (Session), 462, 466
getInstance( ) (Session), 460
getMaxConnections( ) (DatabaseMetaData), 240
getMessageNumber( ) (Message), 470
getMetaData( ) (Connection), 240
getMoreResults( ) (Statement), 226
getName( ) (NameClassPair), 262
getNewBinding( ) (NamingEvent), 283
getNextException( ) (SQLException), 233
getNextSibling( ) (Node), 208
getNodeType( ) (Node), 207
getNodeValue( ) (Node), 208
getObject( )
Binding class, 267
ResultSet interface, 233
getOldBinding( ) (NamingEvent), 283
getPasswordAuthentication( ) (Authenticator), 461
getPrivileges( ) (ResultSetMetaData), 240
getProviders( ) (Session), 461
getRegistry( ) (LocateRegistry), 390
getRequestingProtocol( ) (Authenticator), 461
getRequestingSite( ) (Authenticator), 461
getResultSet( ) (Statement), 226
get/setProperty( ) methods, Message interface, 322
getSQLState( ) (SQLException), 233
getStore( )
Session class, 462
Store class, 465
getString( ) (ResultSet), 228
getSubString( ) (Clob), 238
getTableTypes( ) (ResultSetMetaData), 240
getTransport( ) (Session), 462
getUnicodeStream( ) (ResultSet), 229
getUpdateCount( ) (Statement), 226
getURL( ) (DatabaseMetaData), 240
getURLName( ) (Service), 462
getWarnings( )
CallableStatement interface, 234
Connection interface, 234
PreparedStatement interface, 234
ResultSet interface, 234
Statement interface, 234
getXMLReader( ) (SAXParser), 203
global configuration, Hibernate, 622
<h:graphicImage> JSF HTML tag, 750
groups, SELECT statement (SQL), 777
H[ Top ]
handlers
EJBs, 153
handlers, SAX, 201
ContentHandler interface, 201
DefaultHandler class, 203
ErrorHandler interface, 203
hardware (networks), server applications and, 4
hashCode( ) (RemoteObject), 388
HEAD requests, 56
header files (JNI C/C++), generating with javah, 411
headers
IDL interfaces, 424
JMS messages, 321, 463
helper classes, 429
helper classes, IDL/Java conversion, 425
Hibernate, 17
caching, 652
configuration
class mappings, 626
collection types, 628
global configuration, 622
polymorphic mappings, 636-639
relationship mappings, 629-635
types, 625
HQL (Hibernate Query Language), 649-650
introduction, 619
Java and, 621
JDBC and, 621
performance, 622
pluggability, 622
RDBMS and, 621
reflection, 621
sample application, 619
security, 655
transactions, 650
transparency, 620
Hibernate API
configuration and, 640
events, 648
interceptors, 647
Query class, 646
Session object, 641-646
SessionFactory, 640
hierarchical property files (Ant), 533
holder classes, IDL, 425
IDL/Java conversion, 430
objects, passing as inout, 431
home interfaces (EJBs), 137, 139
JNDI and, 151
hosts
ORBs, specifying, 436
RMI registry daemon, running, 390
HTML
converting XML file into with XSL stylesheet, 214
document condenser (DOM), 208
HTML tags, JSF, 747
HTTP requests, 56
HTTP responses, 57
HTTP servlets, 50
HttpServletRequest interface, 54
HttpServletResponse interface, 57
HttpSessionBindingListener, 75
hyperlinks, JSPs, 84
I[ Top ]
id field (NameComponent), 444
identifiers
IDL, 797
mapping to Java, 797
JMS clients, 316
IDL (Interface Definition Language), 11, 417, 795
comments, 798
constants, 799
mapping to Java, 800
CORBA-enabled interface, defining, 422
data types, 798
characters, 799
strings, 799
user-defined, 804-813
declaration language, 423
default ORB implementation, 435
describing in CORBA, 419
example, complete, 425
exceptions, 813
standard, 814
identifiers, 797
mapping to Java, 797
initial object references, storing as root objects in Naming Service, 444
interface declarations, 424
interface inheritance, 821-823
interfaces
attributes, 817
declarations, 816
mapping to Java, 823
methods, 817
Java, differences from, 423
Java RMI interface, mapping to, 416
Java stubs to CORBA objects, 413
Java-to-IDL-mapping, 416
keywords, 796
literals, 799
Boolean, 800
character literals, 802
numeric, 801
string literals, 802
methods
arguments, 818
call semantics, 820
context values, 819
exceptions, 819
modules, 423
declarations, 815
naming scopes, 803
Naming Service, 436, 438
properties (nonstandard), 436
properties (standard), 435
remote method using inout parameter, 431
RMI vs., 417
sequences, 806
tools
naming service daemon, 832
orbd, 832
servertool, 833
tnameserv, 835
Transient Naming Service Daemon, 835
unions, 809
value types, 825
IDL compiler, 829
IDL tools
IDL compiler, 829
idlj, 829
IDL-to-Java compiler, 417
stub and skeleton classes, generating, 426
<c:if> JSTL tag, 91
ignoreableWhitespace( ), 203
IIOP (Internet Inter ORB Protocol), 422
IMAP protocol, 467
URLs, 462
implementation
beans (EJBs), 140
EJB objects, 137
web services, 362
importNode( ) (Document), 213
inactiveGroup( ) (ActivationGroup), 408
inactiveObject( ) (ActivationGroup), 408
incoming messages, handling, 466
inheritance, interface inheritance, IDL, 821-823
init( )
ORB class, 436
PTPMessagingClient (example), 330
servlet initialization and, 62
initial context, JNDI, 251
command for loading, 260
NamingShell application, establishing for, 262
initial references, listing (ORB), 444
InitialContext interface, 252
obtaining from JNDI service of JMS provider, 316
initialization constructors, 401
initialization methods (ORBs), 435
initialization, servet contexts, 64
inner classes, 423
input parameter variables, 762
<h:inputHidden> JSF HTML tag, 750
input/output, from XSLT transformations, 215
<h:inputSecret> JSF HTML tag, 751
<h:inputText> JSF HTML tag, 751
<h:inputTextarea> JSF HTML tag, 751
INSERT statement (SQL), 777
insertBefore( ), 211
insertRow( ) (ResultSet), 232
integration testing, unit testing and, 543
interceptors, Hibernate API, 647
interface inheritance, IDL, 821-823
interfaces
client (EJBs), 137
client stub interfaces (EJBs), 137
CORBA IDL, 424
DOM, mapping to node types, 207
home interfaces (EJBs), 137, 139
JNDI and, 151
HttpServletRequest, 54
IDL, 424
attributes, 817
declarations, 816
mapping to Java, 823
methods, 817
JMS, 314
JSF events, 120
remote object, unknown, 451
ServletContext, 53
ServletRequest, 54
internationalization, JSTL and, 93
Internet Inter-ORB Protocol (IIOP), 422
InternetAddress class, 463
Interoperable Object References, 434, 445
IORs, 445
isNull( ) (ResultSet), 229
ISO date escape sequences (JDBC), 230
isolation levels, transactions, 242, 243
JDBC support, listed, 242
isolation, transactions
levels, 478
violations, 478
J[ Top ]
J2EE (Java 2 Enterprise Edition), 3
deployment, 41
container-specific classes, 45
descriptors, 41
server-specific configuration, 42
security, 6
limitations, 310
overview, 289
transport layer security, 291
XML Encryption, 308
web services deployment, 364
J2SE (Java 2 Standard Edition), 3
annotations tutorial, 676-686
JAAS (Java Authentication and Authorization Service), 292
authentication and, 305
JACC (Java Authorization Contract for Containers), 292
JAF (JavaBeans Activation Framework), 458
JavaMail, using with, 473
mail messages, assigning content and MIME type, 464
JAR (Java Archive) files, 34
activation.jar (JAF), 458
application, finding XML parser, 200
mail.jar (JavaMail), 458
Java
DOM, 205
IDL, differences (list), 423
JAXP, 199
SAX, 201
using XML documents, 194
and XML, 193
Java annotations, 19
overview, 656
tools, 658
Java API for XML Processing (see JAXP)
Java API for XML Registries (JAXR), 23
Java API for XML Remote Procedure Calls (see JAX-RPC)
Java beans, scope, 87
Java classes, IDL interfaces vs., 423
Java Cryptography Extension (see JCE)
Java Database Connectivity (see JDBC)
Java Enterprise Edition (see J2EE)
Java IDL
overview, 417
Java Management Extensions (see JMX)
Java Message Service (see JMS)
Java Naming and Directory Interface (see JNDI)
Java Native Interface (see JNI)
Java objects, 233
Java packages (IDL modules vs.), 423
Java Remote Method Protocol (JRMP), 376
Java Runtime Environment (JRE), 200
Java Servlet API, 46
Java Transaction API (see JTA)
Java VM
activation daemon, 409
activation groups, 405
codebase property for nondefault class loaders, 395
libraries (native functions), loading, 413
running, 399
Java-aware databases, 232
JavaBeans
JSP action tags, 86
RowSet interface, 247
(see also managed beans)
javah tool, generating JNI C/C++ header files, 411
JavaMail, 14, 456
authenticators, username and password, 461
creating messages, 463
displaying, 471
email and, 457
incoming messages, handling, 466
installing and configuring, 458
layers, 458
message stores, 465
multipart messages, 471
provider registries, 459
providers of messaging services, 461
retrieving messages, 465
searches and message management, 468
sending messages, 464, 473
sessions, 460
URL names, 462
java.rmi package, 375
java.rmi.activation package, 399
java.rmi.server package, 388
java.rmi.server.codebase property, 395
JavaServer Faces API (see JSF)
JavaServer Pages (see JSPs)
java.sql package, 218
javax.servlet.GenericServlet class, 49
javax.servlet.http.HttpServlet class, 49
Javax.servlet.Servlet interface, 49
JAXP (Java API for XML Processing), 6, 194, 199
custom URI resolution, 217
data sources, 215
determining data source support, 217
DOM, 205
generating SAX parsers, 203
getting a DOM parser, 206
parser objects and XSLT processors, 199
parser or processor, getting, 199
transformation classes, 215
XSLT, 214
JAXR (Java API for XML Registries), 23
JAX-RPC (Java API for XML Remote Procedure Calls), 10, 336, 345, 349
introduction, 336
SOAP and, 346
Web service clients, 349
writing web services, 358
WSDL and, 346
JCE (Java Cryptography Extension), 292
JDBC (Java Database Connectivity), 218
architecture, 219
basic functionalities (example), 220
batch updates, 236
BLOB and CLOB objects, 229
commands, database-independent, 246
currently available drivers, listing of, 222
data types, mapping to primitive Java types, 235
date and time classes, 230
drivers, 219, 221
escape syntax, stored procedures, 245
Hibernate and, 621
JDBC-ODBC Bridge, 221, 222
metadata, 239
platform independence, 219
registering, 221
ResultSet (Version 2.0 vs. 1.0), 227
savepoints, 244
SQL statements, 225
transactions, 241
types of, 221
URLs, 222
Versions 1.0, 2.0, and 3.0, 218
JDBC-ODBC Bridge Drivers
URLs, 222
JDBMS systems, storing Java objects, 233
JDK, RMI registry daemon, 390
JMS (Java Message Service), 13, 312
accessing content of, 324
browsing queues, 331
client (example), 331
clients, 316
durable subscriptions, 332
elements of, 313
filtering, 324
header fields and properties, 321
key interfaces, 314
message selectors
expressions, 786
identifiers, 784
literals, 784
operators, 785
structure, 783
messages, 321
point-to-point and publish-subscribe styles, 313
point-to-point messaging, 325
publish-subscribe messaging, 331-333
transactional messaging, 334
types of, 323
JMSReplyTo header, 320
JMX (Java Management Extensions), 24
JNDI (Java Naming and Directory Interface), 8, 9, 249
API and SPI (service provider interface), 250
architecture, 250
binding objects to, 269
browsing a naming system, 265
command for loading initial context, 260
configuration services, 29
naming conventions, 30
contexts, 253
CORBA Naming Service, registering remote object with, 415
creating and destroying contexts, 267
directories, searching, 277
directory entries, creating, 276
directory entries, modifying, 275
directory services, accessing, 270
EJBs, home interfaces, 151
event notification, 281
InitialContext class, 253
introduction, 249
JMS provider, services for, 316, 330
listing bindings of, 266
listing children of, 262
looking up object in naming system (example), 251
looking up objects, 255
naming system service providers, 255
NamingShell application, 256
registering event listeners, 284
remote objects, binding to CORBA Naming Service, 414
running the shell, 262
search command, 279
search controls, 278
search criteria, 277
search results, 278
sources of events, 281
writing event listeners, 282
JNI (Java Native Interface), 377
using with RMI vs. using CORBA, 413
wrapping C/C++ code with, 410
joins, SELECT statement (SQL), 775
JRE (Java Runtime Environment), 200
JRMP (Java Remote Method Protocol), 376
JSF (JavaServer Faces), 7, 741
actions, 111-121
dynamic, 114
applications
sample, 103
structure, 103
configuration file, 105
forms, validation, 125
introduction, 102
lifecycle, 104
managed beans
action methods, 106
backing beans, 106
model beans, 106
managed beans and, 105-109
JSF (JavaServer Faces) (continued)
navigation rules, 113
dynamic actions and, 114
sample application, 103
tables
data grids, 123
editing, 124
panel grids, 122
user interface, events, 120
validation, 125
custom validators, 128
forms, 125
messages, 127
views, 111-121
web UI components, 8
JSF core tags, 741
<f:actionListener>, 741
<f:attribute>, 742
<f:convertDateTime>, 742
<f:converter>, 743
<f:convertNumber>, 742
<f:facet>, 743
<f:loadBundle>, 743
<f:param>, 744
<f:selectItem>, 744
<f:selectItems>, 744
<f:subview>, 745
<f:validateDoubleRange>, 745
<f:validateLength>, 745
<f:validateLongRange>, 746
<f:validator>, 745
<f:valueChangeListener>, 746
<f:verbatim>, 746
<f:view>, 746
JSF EL, 109-111
JSF HTML tags, 747
<h:column>, 749
<h:commandButton>, 749
<h:commandLink>, 749
<h:dataTable>, 749
<h:form>, 750
<h:graphicImage>, 750
<h:inputHidden>, 750
<h:inputSecret>, 751
<h:inputText>, 751
<h:inputTextarea>, 751
<h:message>, 751
<h:messages>, 752
<h:outputFormat>, 752
<h:outputLabel>, 752
<h:outputLink>, 753
<h:outputText>, 753
<h:panelGrid>, 753
<h:panelGroup>, 754
<h:selectBooleanCheckbox>, 754
<h:selectManyCheckbox>, 754
<h:selectManyListbox>, 754
<h:selectManyMenu>, 754
<h:selectOneListbox>, 755
<h:selectOneMenu>, 755
<h:selectOneRadio>, 755
pass-through attributes, 747
JSF tag library, 741
JSP API, 79
JSP Standard Tag Library (see JSTL)
JSPs (JavaServer Pages), 7
action tags, 85
JavaBeans and, 86
ActionForm class, Struts, 607
custom tags, testing, 574
directives, 82
dynamic web pages, 8
EL, 87-90
expression tags, 81
granularity of, 376
hyperlinks, 84
introduction, 79
Java beans, scope, 87
objects, built-in, 83
overview, 80-85
tags
communications, 100
custom, 94-101
EL and, 89
libraries, 94
whitespace and, 82
testing, Cactus, 573-576
JSTL (JSP Standard Tag Library), 90-94
internationalization and, 93
URLs and, 92
JSTL EL, Struts tags, 615
JSTL tags, 90
<c:choose>, 91
<c:forEach>, 92
<c:if>, 91
<c:otherwise>, 92
<c:out>, 91
<c:remove>, 91
<c:set>, 91
<c:url>, 93
<c:when>, 91
for internationalization, 93
<fmt:bundle>, 93
<fmt:message>, 93
<fmt:setBundle>, 94
JTA (Java Transaction API), 9, 187-190, 334
transactions, distributed, 480
JUnit, 16
Ant and, 554-561
batch testing, 558
build control, 555
test result format, 559
assertion methods, 548
Cactus, 541
failed tests, 549
introduction, 541
overview, 545
runtime model, 546
test fixtures, 550
TestCases, 547-548
TestSuites, 552
K[ Top ]
keywords
escape sequences (JDBC), 246
IDL, 796
kind field (NameComponent), 444
L[ Top ]
language independence
CORBA, 419
inter-ORB communications, 422
large data types, 229
lazy loading, Hibernate relationships, 635
LDAP (Lightweight Directory Access Protocol), 249
creating InitialContext with factory class, 254
directory servers, prohibiting new entries in, 276
search filter strings, 277
leaf, CORBA naming directory, 421
leases, expirable (on remote objects), 385
libraries
native code, wrapping with Java, 221
native functions, loading, 413
tag libraries, JSP, 94
lifecycle of servlet, 47
Lightweight Directory Access Protocol (see LDAP)
LIKE statement, 246
list( ) (Context), 262
list( ) (Registry), 390
listBindings( ) (Context), 266
list_initial_references( ) (ORB), 444
literals
IDL, 799
Boolean, 800
character literals, 802
numeric, 801
string literals, 802
JMS message selectors, 784
WHERE clause, EJB QL, 761
<f:loadBundle> JSF core tag, 743
loadLibrary( ) (System), 413
local clients, EJBs, 151
local names of XML elements, 201
LocateRegistry interface, 390
remote objects, looking up, 391
locatorsUpdateCopy( ) (DatabaseMetaData), 239
logical operators
conditional expressions, 764
JMS message selectors, 785
login information, associating with URLName objects, 462
logins, database, 223
looking up objects in naming systems, 251
JNDI context, 255
lookup( ) (Naming), 384, 390
M[ Top ]
mail-order enterprise, 20
main( )
AccountReg class (example), 380
PTPMessagingClient (example), 330
MalformedURLException class, 391
managed beans
JSF, 105-109
action methods, 106
backing beans, 106
model beans, 106
scope, 106
many-to-many relationships, 632
many-to-one relationships, 631
MapMessage class, 323
mapping
constants to Java (IDL), 800
IDL identifiers to Java, 797
IDL interfaces to Java, 823
IDL to Java, 419
object-oriented languages to CORBA specifications, 419
requests, servlet contexts, 52
MarshalException class, 383, 392
marshaling, 383
encoding URL in marshaled bytestream, 395
unmarshaling method arguments, 384
MarshalledObject class, 402, 406
match( ) (SearchTerm), 468
message destinations, 313
Message interface, 314, 322, 463
subclasses with different message bodies, 323
<h:message> JSF HTML tag, 751
<fmt:message> JSTL tag, 93
message selectors (JMS)
expressions, 786
identifiers, 784
literals, 784
operators
arithmetic, 785
comparison, 785
logical, 785
structure, 783
message validation, JSF, 127
MessageConsumer interface, 314, 315, 319, 331
message-driven beans (EJBs), 133, 183-187
container callbacks, 184
deployment, 185
MessageListener interface, 314
implementation (example), 319
message-oriented middleware (MOM), 312
MessageProducer interface, 315, 331
messages, JMS, 321
accessing content of, 324
filtering, 324
header fields and properties, 321
<h:messages> JSF HTML tag, 752
messaging, 13
JavaMail, 14
JMS, 13
messaging clients, 313
messaging provider, 313
metadata, JDBC, 239
method permissions, EJB deployment, 146
methods
IDL
arguments, 818
call semantics, 820
context values, 819
exceptions, 819
IDL interfaces, 424, 817
parameter modifiers, 423
return values or exceptions, 384
servlet contexts, 53
Microsoft
ODBC, 219, 222
Windows, 219
MIME types
JavaMail support for, 456
multipart messages, creating, 473
MimeMessage class, 464
model beans, JSF, 106
modifiers (IDL methods), 423
modifyAttributes( ) (DirContext), 274
modules, 26
application assembly, 28
IDL, declarations, 815
modules (IDL), 423
nesting within files, 423
MOM (message-oriented middleware), 312
moveToCurrentRow( ) (ResultSet), 232
moveToInsertRow( ) (ResultSet), 232
multicast objects (remote object communication), 384
multipart messages, 471
displaying, 471
sending, 473
Multipurpose Internet Mail Extensions (see MIME types), 456
MVC (model-view-controller), 16
Struts, 593-596
N[ Top ]
NameAlreadyBoundException class, 270
NameClassPair class, 262
NameComponent class, 439, 444
NamedNodeMap class, 208
NamedValue class, 452
names
children of Context (JNDI), 264
fully-qualified, for remote objects, 384
NamespaceChangeListener interface, 282
NamespaceChangeLogger class (example), 282
namespaces
support for, requesting, 203
XML, 201, 211
naming context, obtaining object reference from, 444
naming conventions
JNDI configuration services, 30
two-level binding, 31
Naming interface, 380, 384, 391
looking up remote objects (example), 381
lookup( ), 384
naming scopes, IDL, 803
Naming Service (CORBA), 437, 444
references, narrowing, 444
naming service daemon (IDL), 832
naming services, 249
binding names to objects, 253
converting to JNDI for communication with CORBA, 414
JNDI, looking up object, 251
non-RMI, using to register RMI remote objects, 397
registering server object with, 416
RMI, 384, 390
naming systems
browsing, 265
service providers for JNDI, 255
NamingContext interface, 421
NamingEnumeration interface, 262
NamingEvent interface, 283
NamingException class, 253
namingExceptionThrown( ) (NamingListener interface), 282
NamingManager class, 250
NamingShell application, 256
cd command, 265
create command, 267
destroy command, 268
help and exit commands, 262
initctx command, 260
list command, 262
listen command, 285
running the shell, 262
search command, 279
narrow( )
NamingContextHelper class, 443
PortableRemoteObject interface, 414, 415
native code, RMI and, 410
Native Interface API, 410
native messaging systems, 313
proprietary message formats, 321
wrapping messages with JMS format, 323
native-API partly-Java drivers, 221
native-protocol all-Java drivers, 222
navigation rules, JSF, 113
dynamic actions, 114
NDS (Novell Directory Services), 249
nested transaction model (see NTM)
nesting search expressions, 278
net-protocol all-Java drivers, 222
network protocols, CORBA, 422
networks, heterogeneous nature of, 4
newInstance( )
ActivationGroup class, 407
DocumentBuilderFactory class, 199
parser or processor, retrieving from Java program, 199
SAXParserFactory class, 199
TransformerFactory class, 199
NewsAddress class, 463
next( ) (ResultSet), 227
NNTP (Usenet) news, addresses, 463
nodes, DOM
importing into documents, 213
listing of important types, 207
manipulating, 211
nonclass data structure definitions (C++ and IDL), 423
non-object-oriented languages (CORBA specifications and), 419
nonremote objects, remote objects vs., 393
NoPermissionException class, 253
NotFound class, 441, 445
Novell Directory Services (NDS), 249
NTM (nested transaction model), 480
null values
database columns, 229
inserting with PreparedStatement, 235
rows, inserting, 232
nullsAreSortedHigh( ) (DatabaseMetaData), 240
numeric literals, IDL, 801
fixed-point, 801
floating-point, 801
O[ Top ]
Object interface
CORBA, 442
direct communication with remote object, 451
remote method requests, sending, 442
object registry (RMI), 793
object relational mapping (ORM), 17
Object Request Brokers (see ORBs)
object serialization
marshaling method arguments, 383
remote method arguments, 392
unmarshaling, 384
objectAdded( ) (NamespaceChangeListener), 282
ObjectChangeListener interface, 282
implementation (example), 283
ObjectImpl class, 442
ObjectMessage class, 323
object-oriented database management systems (OODBMS), 232
object-oriented programming
Java, 232
languages, mapping to CORBA specifications, 419
objectRemoved( ) (NamespaceChangeListener), 282
objects
activation service, 385
adding to NamingContext (CORBA), 439
binding to NamingService, 439
CORBA, 422
creating, 422
data types, IDL vs. Java handling of, 423
distributed garbage collection, 385
EJBs, 132-134
implementation, 137
Java types, inserting into databases, 235
JSP, built-in, 83
naming/registry service, 384
non-serializable, throwing MarshalException, 392
remote, 11
remote distribution, enabled, 387
remote vs. nonremote, 393
storing and manipulating, support for, 232
subcontexts, 440
support for, 419
transport methods, deciding, 392
object_to_string( ) (ORB), 445
ODBC (Open Database Connectivity), 222
JDBC URL subprotocol (odbc), 223
oj (outer join) keyword, 247
OMG, Java IDL mapping, 419
one-to-many relationships, 631
one-to-one relationships, 629
onMessage( ) (MessageListener), 314, 319
OODBMS (object-oriented database management systems), 232
open( ), Folder class, 467
Open Database Connectivity (see ODBC)
open source, Struts as, 588
open source tools, 15
OperationNotSupportedException class, 253
operators
arithmetic, 764
JMS message selectors, 785
combining search filters with, 278
comparison, 764
JMS message selectors, 785
logical, 764
JMS message selectors, 785
SQL predicates, 774
optimistic concurrency, transactions, 488
OR operator, combining search filter with, 278
Oracle databases
JDBC-Thin driver, URLs for, 222
PL/SQL stored procedure (example), 245
ORBClass property, 435
ORBInitialHost property, 436
ORBInitialPort property, 436
ORBs (Object Request Brokers)
communications between, 422
default implementation (IDL), 435
implementation not standardized, 444
initializing, 435
listing, 444
properties, specifying (methods), 436
reference, initializing, 435
remote object references, 442
services provided, 444
stringified object references and, 445
ORBSingletonClass property, 435
ORDER BY clause, EJB QL, 766
order processing form (XML)
converting from SAX into HTML with XSL, 214
transforming into SAXResult, 216
order processing with SAX parser (example), 203
org.omg.CORBA package, 417, 438
org.omg.CORBA.portable package, 430
org.omg.CosNaming package, 417, 438
org.w3c.dom package, 206
ORM (object relational mapping), 17
<c:otherwise> JSTL tag, 92
<c:out>JSTL tag, 91
outer join keyword, 247
<h:outputFormat> JSF HTML tag, 752
<h:outputLabel> JSF HTML tag, 752
<h:outputLink> JSF HTML tag, 753
<h:outputText> JSF HTML tag, 753
P[ Top ]
packaged, 142
packaging EJBs, 149-150
panel grids, JSF tables, 122
<h:panelGrid> JSF HTML tag, 753
<h:panelGroup> JSF HTML tag, 754
<f:param> JSF core tag, 744
parameters
batch updates (CallableStatement), 237
clearing (PreparedStatement), 235
specifying, prepareStatement( ), 235
stored procedures, 245
parse( ), SAXParser class, 201
parsers for XML, 194
creating with JAXP, 199
DocumentBuilder class, 206
DOM, 205
getting a parser, 206
handlers, 201
manipulating DOM trees, 208
navigating DOM tree, 207
retrieving from a Java program, 199
SAX, 201
using, 203
Part interface, 463
setting message content, 464
pass-through attributes, JSF HTML tags, 747
passwords
for database connections, 223
JavaMail, authenticating, 461, 467
JNDI contexts, authenticating, 256
path expression variables, 763
paths, Ant, 514
peer-to-peer systems
client vs. server, 383
clients and servers in, 382
performance
databases, precompiled SQL statements and, 235
escape-sequence processing, affecting, 247
factory class vs. RMI registry, 394
Hibernate, 622
transaction isolation levels vs., 242
persistence
remote object references, 388
remote references, 389, 400
physical deployment, 34
platform independence (JDBC), 219
pluggability, Hibernate, 622
plug-ins, Struts, 615
point-to-point messaging, 313, 325
browsing queues, 331
object references, 384
queueing messages, 315
receiving messages, 319
XA interfaces for, 335
policy, security, 417
polymorphic mappings, Hibernate, 636-639
pooling database connections, 243
POP (Post Office Protocol), 457
POP-3 protocol, 467
PortableRemoteObject interface, 414, 415
ports
activation daemon, 410
exported remote objects, specifying for, 402
for exported objects, specifying, 401
ORBs, specifying, 436
registry daemons, listening on, 390
POST requests, 56
prepare phase, distributed transactions and, 483
prepareCall( )
CallableStatement interface, 245
Connection interface, 245
PreparedStatement interface, 225, 235
batch updates, 236
parameters, setting (example), 236
setBlob( ) and setClob( ), 239
prepareStatement( ) (Connection), 235
primary keys, entity beans (EJBs), 162
primitive data types, 227
streams of, in JMS messages, 323
printQueue( ), 331
printWarnings( ) (SQLWarning), 234
processing orders with SAX parser (example), 203
processors, XSL, 214
processors, XSLT, 199
retrieving from a Java program, 199
programmatic transactions, 487-488
properties
buildfiles (Ant), 506-509
JavaMail system, 460
jaxp.properties, setting default XML parser, 200
JMS messages, 321
JMS messages, clients creating, 322
JNDI context, 252
ORB initialization, 435-436
transactions, 477
property files, Ant, 533
providers of messaging services, accessing with JavaMail, 461
proxies, Hibernate relationship mappings, 633
public classes, 423
publish-subscribe messaging, 313
client (example), 331
creating publishers and subscribers, 315
durable subscriptions, 332
XA interfaces for, 335
Q[ Top ]
Query class, Hibernate API, 646
query variables, 762
QueueBrowser class, 331
QueueConnection interface, 315
QueueConnectionFactory interface, 314
queueing messages, 325
QueueReceiver interface, 319, 330
associating MessageListener with, 320
QueueSender interface, 330
QueueSession interface, 319
R[ Top ]
range variables
EJB QL, 758
RDBMS (relational database management system), 768
clusters, 768
Hibernate and, 621
reactivation constructors, 401, 402
read-only result sets, 230
rebind( )
Context interface, 270, 415
Registry class, 390
receive( ) (QueueReceiver), 331
receiving messages, JMS client, 319
recv command, 330
recv_synch command, 330
references
remote object, persistence of, 388
to local and remote registries, obtaining, 390
RefFSContextFactory class, 252
reflection, Hibernate, 621
register( ) (Activatable), 406
registerGroup( ) (ActivationSystem), 408
registering
AccountReg class (example), 380
activatable remote objects, 404
activation groups, 408
JNDI event listeners, 284
listen command, 285
remote objects on local host, 391
server object with CORBA Naming Service, 416
without instantiating, 406
registerListener( )
PTPMessagingClient class (example), 330
registerOutParameter( ) (CallableStatement), 245
registries, JavaMail providers, 459
Registry interface, 384, 390
remote objects, looking up, 391
registry, RMI, 384, 390
activatable class, registering, 400
dynamic class loading and, 397
factory classes, 393
local and remote, obtaining references to, 390
registering remote objects without activation, 399
run by rmid activation daemon, 410
services provided, 384
vendor implementations of, 384
relational database management system (see RDBMS)
relational databases, 8
not object-oriented, 232
SQL and, 768
(see also databases; RDBMS)
relationship mappings, Hibernate configuration, 629-635
relationships
many-to-many, 632
many-to-one, 631
one-to-many, 631
one-to-one, 629
remote clients, EJBs, 151
remote interface, 377, 388
defining for remote objects, 387
implementation (example), 378
objects enabled for remote distribution, tagging, 387
remote exceptions, declaring, 387
specifying for remote objects, 386
stub and skeleton classes, 386
Remote Method Invocation (see RMI)
remote methods
arguments, 392
executing with DII and DSI, 451
implementation, server (IDL/Java conversion), 432
inout parameter, 431
out or inout arguments, 425
return values, 392
remote objects, 11
activatable, defining, 399, 400
activating, 399
activation daemon, 409
activation groups, 407
activation service (RMI), 385
binding to CORBA Naming Service (JNDI), 414
binding to names, 390
class names, finding, 407
classes (RMI registry), 390
clients accessing, 390
defining, 386
defining activatable objects, 400
delegates, 430
factory classes, 393
getting from other remote objects, 444
IDL (interfaces, describing), 417
implementing, 400, 402
interaction, starting, 395
interface, defining, 377
interfaces not available, 451
looking up with LocateRegistry and Registry interfaces, 391
looking up with Naming interface, 391
native code, exporting (RMI and JNI), 413
nonremote objects vs., 393
persistent remote references, 400
references as printable character strings, 445
registering, 380
registering activatable objects, 404
remote reference, generating, 392
stubs, skeletons and objects, relationships among, 386
remote references
clients, obtaining (IDL/Java conversion), 434
copying objects vs., 393
CORBA, 442
expiring, 385
factory classes for, 393
finding, methods for, 443
persistence of, 389, 399, 400
point-to-point, nonpersistent, 389
RMI, 382
stubs (server objects), 432
to client stubs, 383
RemoteException class, 377, 387
RemoteObject class, 388
RemoteServer class, 388, 400
<c:remove> JSTL tag, 91
removeChild( ), 208
repeatable reads (transactions), 243, 479
replaceChild( ), 211
replication (remote objects), 384
request dispatching
filters, 68
Request interface, 452
request level, 87
RequestProcessor, Struts, 595
Action class and, 598
requests
JSF, 104
servlets, 54-57
dispatching, 58
forms, 55
HEAD, 56
HTTP, 56
POST, 56
web service, 340
reset( )
BytesMessage class, 324
StreamMessage class, 324
resolve_initial_references( ) (ORB), 421, 434, 443, 444
resource adapters, 26
resource management
cleaning up JMS connections and sessions, 320
database connections, closing, 223
for servers, factory objects and, 399
resources
deployment and, 32
deployment descriptors and, 707-710
resources, transactions, 476
responses, servlets
error handling, 59
request dispatching, 58
Result interface, 215
result sets
deleting rows, 232
multiple, 226
SQL queries, 227
structure, discovering, 239
updateable, 239
ResultSet interface, 221, 227
BLOBs and CLOBs, 238
cursor location (JDBC 2.0), 231
JDBC 1.0 vs. JDBC 2.0, 230
large, handling, 229
navigating, 227
result set types, listed, 230
rows, inserting, deleting, editing data, 231
scroll-sensitive, updateable, 230
updating (single table without joins), 232
ResultSetMetaData interface, 239
database table, contents and data types (example program), 240
retrieving JavaMail messages, 465
handling incoming messages, 466
message stores, 465
searches and message management, 468
return codes, SQL, 780
return values (remote methods), 392
serializable, required, 392
RMI (Remote Method Invocation)
accessing RMI objects from CORBA, 416
activation daemon, 409, 791-792
activation groups, 407
architecture, 382
classes, loading, 395
clients, accessing remote objects, 390
compiler, 386, 787
configuring clients and servers for, 395
converting to JNDI to communicate with CORBA, 414
defining activatable object, 400
distributed garbage collection, 385
dynamic class loading, 394
factory classes, 393
from applets, 398
interfaces (elements), 375
key RMI classes for implementations, 388
language dependence, 376
naming/registry, 384
native method calls and, 410
object registry, 793
object services, 384
persistent remote references, 400
registering activatable objects, 404
registering remote objects, 406
registry, 380
registry and naming services, 390
remote method arguments and return values, 392
remote object activation, 385, 399
serial version utility, 793
serialver utility, 793
stubs and skeletons, creating, 389
stub/skeleton layer, 392
using with JNI vs. using CORBA, 413
writing class to implement remote interface, 388
rmi protocol (object URLs), 391
RMI tools, 787-794
rmic (RMI compiler), 787-790
IDL mapping of Java RMI interface, generating, 416
stub and skeleton classes, generating, 379, 386, 389
updated, RMI/IIOP, 414
RMIClassLoader class, 395
rmid activation daemon, 409
RMI registry, running, 410
rmid command, 791
RMI/IIOP, 377, 414
RMI communicating with CORBA remote objects, 377
TCP/IP protocol base, 422
tnameserv utility, 416
RMIProcess class, 396
RMISecurityManager class, 396, 398
setting for remote class loading, 398
rollback( )
CMTD and, 492
Connection interface, 242, 244
stateless session beans and, 491
XASession class, 334
rollback phase, distributed transactions, 483
rolling back transactions, 242
root (CORBA naming directory), 421
root object class (CORBA), 442
rows
accessing, 230
editing data, inserting or deleting, 231
insertions, preventing, 243
navigating (ResultSet), 227
RowSet interface, 247
RowSetListener interface, 248
S[ Top ]
SAAJ (SOAP with Attachments API for Java), 10
introduction, 336
web service deployment, 348
web services and, 345
clients, writing, 349
savepoints (JDBC 3.0), 244
SAX (Simple API for XML parsing), 194, 201
ContentHandler interface, 201
DefaultHandler class, 203
DOM, combining with to parse XML documents, 205
ErrorHandler interface, 203
handlers, 201
parser, using, 203
transforming XML document to SAXResult, 216
SAXParser class, 200
parsing document directly from, 203
SAXParserFactory class, 199, 203
SAXParserFactoryImpl class, 200
SAXResult class, 215
SAXSource class, 215
scalar database functions, 246
scope
Java beans, in JSPs, 87
JSF managed beans, 106
naming scopes, IDL, 803
request level, 87
Struts ActionForm beans, 603, 606
scoping
searches, 279
targets for JNDI event listeners, 284
scrolling
result sets, 230, 231
support information (DatabaseMetaData), 232
SearchControls class, 285
searching
directories, 277
JavaMail messages, 468
search command, 279
search controls, 278
search criteria, 277
search results, 278
SearchResult class, 278
SearchTerm class, 468
security
application assembly, 39
application layer security, 289
authentication, 291
authorization, 291
authentication, 292
EJB-tier, 305
web-tier, 296
authorization, 292
EJB-tier, 305
web-tier, 299
configuration
deployment descriptors and, 701-703
CORBA policy services, 417
EJB deployment, 145
Hibernate, 655
J2EE, 6
limitations, 310
overview, 289
XML encryption, 308
JAAS and, 292
servlets, 64
SSO (Single Sign-On), 309
transport layer security, 289
confidentiality, 291
integrity, 291
web components
EJB-tier authentication, 305
EJB-tier authorization, 305
web-tier authentication, 296
web-tier authorization, 299
web-tier transport-level security, 295
security manager, remote class loading, allowing, 396
security policies
changing to allow remote class loading, 398
remote class resolution, 396
remote classes, loading, 396
SELECT clause
EJB QL, 759
DISTINCT option, 760
HQL, 650
SELECT statement (SQL), 773
groups, 777
joins, 775
string comparisons, 774
subqueries, 775
<h:selectBooleanCheckbox> JSF HTML tag, 754
<f:selectItem> JSF core tag, 744
<f:selectItems> JSF core tag, 744
<h:selectManyCheckbox> JSF HTML tag, 754
<h:selectManyListbox> JSF HTML tag, 754
<h:selectManyMenu> JSF HTML tag, 754
<h:selectOneListbox> JSF HTML tag, 755
<h:selectOneMenu> JSF HTML tag, 755
<h:selectOneRadio> JSF HTML tag, 755
semicolons (IDL vs. Java), 424
send( )
QueueSender class, 318, 330
Transport class, 464
send command, 330
sending JMS messages, 318, 464
multipart, 473
sendMessage( ), 330
separator characters in JNDI compound names, 264
sequences, IDL, 806
Serializable interface, 388
remote method arguments, 392
serialization
holder class objects, 431
MarshalledObject, 407
primitive data types, 392
remote method arguments, 383
Streamable object (CORBA), 430
serialver utility, 793
server skeletons, 379, 382
classes, loading, 395
classes, regenerating (RMI/IIOP), 414
compiling, 379
converting remote request into method call on server object, 384
generating with rmic, 386, 389
method invocations, forwarding to server implementation object, 451
relationships with remote objects and stubs, 386
RemoteObject as superclass for, 388
RMI architecture, 383
server tool (IDL), 833
servers, 4
configuring for remote class loading, 395
constructing with given name, 404
distinguishing from clients in distributed object system, 382
EJB, 12
J2EE, support for JMS, 313
Java implementation, lacking, 413
as Java objects (RMI), 376
LDAP, prohibiting directory entries, 276
native libraries, loading, 413
registering RMI-enabled objects, 384
registering with CORBA Naming Service, 416
remote activation of server objects, 385
remote interface, implementing, 400
remote requests, handling, 384
resource management, 399
RMI
implementing with RemoteServer, 388
loading skeleton and implementation classes, 395
RMI/JNI or CORBA, interface to native code, 414
SMTP, 457
_ServerStub class, 426
Service class, 466
retrieving URLName objects, 462
service providers interface (see SPI)
service providers, JavaMail implementations, 459
Services API, 200
Servlet API, 7, 46
exceptions, 60
javax.servlet.GenericServlet class, 49
javax.servlet.http.HttpServlet class, 49
javax.servlet.Servlet interface, 49
servlet contexts, 51
directory tree, 51
initialization, 64
methods, 53
request mapping, 52
ServletContext interface, 53
ServletRequest interface, 54
servlets, 7, 46
containers, 47
cookies, 71
in e-commerce application (example), 20
environment, 47
exceptions, 60
filters, 65-68
granularity of, 376
HTTP, 50
initialization, custom, 61-64
instantiating parser factories in, 200
lifecycle, 47
requests, 54-57
dispatching, 58
forms, 55
HEAD, 56
HTTP, 56
POST, 56
responses, 57-61
error handling, 59
request dispatching, 58
security, 64
session tracking, 72
testing, Cactus, 576-579
testing servlets (Cactus), 568
writing, 49
session beans (EJBs), 133
container management, 158
stateful, 155
stateless, 155
transaction support, 159
session facade, EJB transactions, 493
Session interface, JMS provider/client sessions, 315
Session object
Hibernate API, 641-646
session tracking, 72
SessionFactory, Hibernate API, 640
sessions
acknowledging received messages, 317
authenticators for usernames and passwords, 461
closing, 320
JavaMail, 460
JMS, 317
providers of messaging services, 461
transactional messaging, 334
<c:set> JSTL tag, 91
setAutoCommit( ) (Connection), 242
setBlob( ) (PreparedStatement), 239
<fmt:setBundle> JSTL tag, 94
setBytes( ) (Blob), 239
setClientID( ) (TopicConnection), 332
setClob( ) (PreparedStatement), 239
setDataHandler( ), 464
setDocumentLocator( ), 201
setEscapeProcessing( ) (Statement), 247
setFeature( ) (SAXParserFactory), 203
setFlag( ) (Message), 470
setMessageListener( ) (QueueReceiver), 320, 331
setNamespaceAware( )
DOMParser class, 200
SAXParser class, 200
SAXParserFactory class, 203
setNodeValue( ) (Node), 211
setNull( ) (PreparedStatement), 235
setObject( ) (PreparedStatement), 235
setReturningObjFlag( ) (SearchControls), 279
setSavepoint( ) (Connection), 244
setSearchScope( ) (SearchControls), 279, 285
setString( )
Clob class, 239
PreparedStatement interface, 235
setText( ) (Part), 464
setTransactionIsolation( ) (Connection), 243
setURIResolver( ) (Transformer), 217
setValidating( )
DOMParser class, 200
SAXParser class, 200
SAXParserFactory class, 203
Simple API for XML (see SAX)
SMTP (Simple Mail Transfer Protocol), 457
addresses for mail, 463
SOAP (Simple Object Access Protocol)
introduction, 338
mapping to Java, 346
messages, 338
data types, 341
SOAP with Attachments API for Java (see SAAJ)
socket programming, RMI vs., 376
sockets, customized factories for, 401
software testing, 540
source code, XDoclet and, 669-675
Source interface, 215
spam, searching for and deleting, 469
SPI (service providers interface)
JNDI, 250, 251
separator characters for compound names, 264
SQL (Structured Query Language), 218
ALTER TABLE statement, 771
ANSI-92 SQL state codes, 233
CREATE TABLE statement, 770
data types, 228, 769
DATE, TIME, and TIMESTAMP, 230
DROP statement, 772
executing as batch, 236
executing multiple, 241
executing multiple queries simultaneously, 226
functions
aggregate, 779
value functions, 779
mapping to Java primitive types, 235
precompiled, running repeatedly, 235
query results, 227
relational databases, 768
return codes, 780
SQL-92, 219
statements
data manipulation, 773-778
DELETE, 778
INSERT, 777
schema manipulation, 770-772
SELECT, 773
UPDATE, 778
statements in JDBC, 225
stored procedures, 244
SQLException class, 221, 233
SQLWarning class, 234
SSO (Single Sign-On), security, 309
start( ) (QueueConnection), 320
startDocument( ) (Content Handler), 201
startElement( ) (ContentHandler), 201, 203
Statement interface, 221, 225
PreparedStatement vs. Statement objects, 235
queries, executing multiple, 226
static methods (helper class), 425
static proxy, web services clients, 349, 350
Store class, 465
stored procedures (databases), 244
batch updates, 237
Streamable interface, 430
StreamMessage class, 323
StreamResult class, 215
StreamSource class, 215
string literals, IDL, 802
string manipulation functions
SQL, 779
String objects (arrays), initial objects listing, 444
stringified object references, 445, 451
strings
comparisons, SELECT statement (SQL), 774
DatabaseMetaData methods, 240
IDL, 799
Java, converting to native, 413
object references as printable characters, 445
read-only attribute (IDL), 424
SQL, processing (databases), 235
string_to_object( ) (ORB), 445
structs, IDL, 807
Structured Query Language (see SQL)
Struts
Action class, 596-604
RequestProcessor, 598
ActionForms
DynaActionForms, 616
ActionServlet and, 594
configuration file, 600
as framework, 589
introduction, 588
MVC controller, 593-596
as open source, 588
plug-ins, 615
RequestProcessor, 595
Action class and, 598
sample application, 590
tags, 609-610
form handling, 610-613
JSTL Expression Language, 615
validator, 616
views, 604-609
ActionForm class, 604
scope, 606
validation, 606
stub and skeleton classes, regenerating for RMI/IIOP, 414
stubs, 375
client and server, 431
converting from stringified object references, 445
as remote references to server objects, 432
stub/skeleton layer, RMI, 382
styles, web services, 344
stylesheets, 194
subcontexts (NamingService), binding objects to, 440
subqueries, SELECT statement (SQL), 775
subscriptions to topics, 331
<f:subview> JSF core tag, 745
Sun Microsystems
Crimson XML parser, 199
JNDI API classes and providers (web site), 250
RowSet implementations, 247
support for transactions, databases, 243
synchronous messaging, 330
System class, loading native libraries, 413
system properties for XML parsers, 200
T[ Top ]
tables
JSF
data grids, 123
editing, 124
panel grids, 122
modifying structure, 244
tags
attributes of, 202
JSP
action tags, 85
communication, 100
custom, 94-101
EL and, 89
libraries, 94
whitespace and, 82
JSTL, 90
Struts, 609-610
form handling, 610-613
JSTL Expression Language, 615
text within, parsing, 204
XML, 194
targets (Ant)
buildfiles, 504
modular, 535
tasks (Ant)
directory tasks, 509-514
enterprise, 522-528
file tasks, 509-514
Java tasks, 514
classpaths, 514
code compile, 516
paths, 514
running programs, 517
TCP/IP
remote references, point-to-point, 389
RMI/IIOP and, 422
templates, XSL, 214
temporary destinations for messages, creation by JMS clients, 320
TestCases (JUnit), 547-548
testing
black box testing, 543
Cactus
asynchronous code, 581-582
enterprise components, 561-587
JSPs, 573-576
process, 563
servlet filters, 576-579
test proxies, 564
testing EJBs, 579-581
writing tests, 567-573
coverage, 545
EJBs, Cactus, 579-581
result formatting, 559
white box testing, 543
(see also unit testing)
TestSuites (JUnit), 552
text nodes, 207
TextMessage interface, 323, 330
thread safety, parser factories and, 200
threads
database updates, performing, 243
PTPMessagingClient (example), 330
threadsafe servlets, 68
ties (CORBA skeletons), 414
Time class, 230
timestamps
JMS message headers, 322
Timestamp class, 230
tnameserv utility (RMI/IIOP), 416
TopicConnection interface, 315
TopicConnectionFactory interface, 314
topics, publish-subscribe messaging, 332
durable subscriptions to, 332
TopicSession interface, 315
creating publishers, 315
toString( ) (RemoteObject), 388
tracking sessions, 72
transactional messaging, 334
TRANSACTION_READ_UNCOMMITTED class, 243
transactions, 241
best practices, 497
changed transactions, 480
concurrency, optimistic, 488
connections supporting, 243
declarative, 488
distributed, 480
JMS destination, 496
scenarios, 481-483
two-phase commit, 483
EJBs, 490
BMTD, 490
CMTD, 492, 495
session facade, 493
Hibernate, 650
isolation
levels, 242, 478
violations, 478
JDBC supporting, listed, 242
models, 479
changed transactions, 480
FTM 479
NTM, 480
operations, 475
overview, 475
programmatic, 487-488
properties, 477
resources, 476
rolling back to savepoint, 244
setting, 243
XML documents for, 195
transformation, XSLT, JAXP data sources, 215
Transformer class, 215
setURIResolver( ), 217
TransformerFactory class, 199, 215
getFeature( ), 217
Transient Naming Service Daemon (IDL), 835
transparency, Hibernate, 620
transport layer security, 289
confidentiality, 291
integrity, 291
web-tier transport-level security, 295
transport protocols, RMI architecture, 382
tree structure, DOM
extending trees, 211
manipulating (DocumentCondenser example), 208
navigating, 207
troubleshooting, 234
two-level name binding, 31
typedefs, IDL, 804
Types class, 228
types, Hibernate, 625
U[ Top ]
unbind( ), Registry interface, 390
UnicastRemoteObject class, 378, 388
nonpersistent references, 399
RemoteException and, 388
unions, IDL, 809
unit testing
Ant builds, 555
dependencies, 542
integration testing and, 543
introduction, 540
JUnit (see JUnit)
tools, 542
units, 542
Unix systems, RMI registry daemon, 390
unmarshaling, 384
classes, finding, 396
UPDATE statement (SQL), 778
updateBlob( ) (ResultSet), 239
updateClob( ) (ResultSet), 239
updating
batch updates (JDBC), 236
existing rows, editing data, 231
JDBC 2.0 support, 230
SQL UPDATE statements, 226
support information (DataBaseMetaData), 232
update counts, 226, 236
URIs, resolving for XSL files, 217
<c:url> JSTL tag, 93
URLDataSource class, 473
URLs
bundling into MarshalledObject, 407
class file name, encoding (marshaling), 395
class names, loading, 407
context provider, for JNDI, 252
database connections, using for, 223
for class bytecodes, 405
for JavaMail services, 462
JDBC, 222
JSTL and, 92
object names, fully qualified, 384
odbc subprotocol, 223
RMI remote objects, 391
Usenet news, addresses for, 463
user-defined data types, IDL, 804
arrays, 805
enumerations, 808
sequences, 806
structs, 807
typedefs, 804
unions, 809
usernames and passwords
for database connections, 223
JavaMail, 461, 467
utilities, Ant, 519-521
V[ Top ]
<f:validateDoubleRange> JSF core tag, 745
<f:validateLength> JSF core tag, 745
<f:validateLongRange> JSF core tag, 746
validating XML documents against DTDs, 203
validation (JSF), 125
custom validators, 128
forms, 125
messages, 127
<f:validator> JSF core tag, 745
value functions, SQL, 779
value types, IDL, 825
<f:valueChangeListener> JSF core tag, 746
variables
collection member variables
EJB QL, 758
input parameter, 762
JSTL, 91
variables (continued)
path expression, 763
query variables, 762
range variables, 758
WHERE clause
EJB QL, 762
vendor naming services, RMI registry and, 384
<f:verbatim> JSF core tag, 746
<f:view> JSF core tag, 746
views, Struts, 604-609
ActionForm class, 604
scope, 606
validation, 606
virtual machine, 399
W[ Top ]
W3C (World Wide Web Consortium)
DOM, 194
XML specification, web site, 193
wait( ), 380
warning( ) (ErrorHandler), 203
warnings (SQL), 234
wasNull( ) (ResultSet), 229
web applications, 51-53
databases and, 75
non-HTML content, 75
structure, 52
web components, 26
deployment descriptors, 691
component references, 703-707
cross-component settings, 691-696
declarations, 696-698
resources, 707-710
security configuration, 701-703
web handler declarations, 698-701
security
EJB-tier authentication, 305
EJB-tier authorization, 305
web-tier authentication, 296
web-tier authorization, 299
web-tier transport-level security, 295
web handlers, deployment descriptors and, 698-701
web services
clients
DII approach, 355
dynamic proxy approach, 353
static proxy approach, 350
writing, 349
deployment, 363-374
Axis mode, 372
J2EE, 364
Java implementation code, 363
SAAJ and, 348
deployment descriptors, 732-735
development, 348
EJB web services, 360
encodings, 344
implementation, 362
introduction, 337
overview, 336
SAAJ and, 345, 349
styles, 344
writing, simple services, 358
web UIs, 7
components, 8
WEB-INF directory, 52
WebRowSet interface, 248
web-tier authentication, 296
web-tier authorization, 299
web-tier transport-level security, 295
web.xml deployment descriptor, 691
component references, 707
cross-component settings, 691-696
resources, 707
security configuration, 701-703
web component declarations, 696-698
web handler declarations, 698-701
well-formed XML documents, 193, 194
<c:when> JSTL tag, 91
WHERE clause
EJB QL, 761
literals, 761
variables, 762
HQL, 650
white box testing, 543
whitespace
handling by SAX XML parser, 203
JSP tags, 82
wildcard searches
DatabaseMetaData methods, 240
escape sequences, JDBC, 246
Windows systems
filename separator character, 264
RMI registry daemon, 390
World Wide Web Consortium, 193
WSDL (Web Services Description Language), 337, 340
mapping to Java, 346
mappings, deployment descriptors, 735
operations, 342
X[ Top ]
XAConnectionFactory class, 334
XAConnections class, 334
Xalan XSL engine, 199
XASessions class, 334
XDoclet, 19
annotations, 658
custom, 676
deployment descriptors, 662-669
processing, 659-661
source code generation, 669-675
tutorial, 658-676
Xerces parser (Apache), 199
XML, 193
advantages of, 193
deployment descriptors, 27
documents, using, 194
DTDs (orders.xml example), 195
getting a parser, 206
handlers, 201
JAXP, 194, 199
JAXP data sources, 215
manipulating DOM trees, 208
navigating DOM tree, 207
parser or processor, getting, 199
parsing with DOM, 205
parsing with SAX, 201
specification, web site for, 193
using a SAX parser, 203
well-formed XML, 194
XML Encryption, 308
XML Schema, 196
XMLReader class, 203
XSL stylesheets, 214
XSLT (XSL for Transformations), 194
JAXP data sources, 215
JAXP processors for, 199
Return to Java Enterprise in a Nutshell