|
SCBCD Exam Study Kit Java Business Component Developer Certification for EJB Paul Sanghera 2005 | 488 pages ISBN: 1932394400 |
|||
![]() |
$25.00 | PDF ebook | |
![]() |
$49.95 | Softbound print book | |
Index
Aabstract
access methods 217
accessing an entity bean concurrently 145
ACID test for transactions 269
<acknowledge-mode> 250
administrator role 14
afterBegin() method 284–285
afterCompletion() method 284–285
application assembler
application client 9
application deployer 13
application exceptions
applications
<assembly-descriptor> 282, 313
asynchronous communication 25, 27, 47, 248
atomicity 20, 153, 269
attributes 274–284
authentication 11, 20, 311
authorization 11, 44, 311–312, 314–315
AUTO-ACKNOWLEDGE 250
B
bean construction 166
bean deployer 28, 32, 130
bean managed persistence
bean managed transaction demarcation (BMT)
bean provider
bean-managed transactions demarcation 272
beforeCompletion() method 284–285
begin() method in the UserTransaction interface 273–274
BETWEEN 238
BMP entity bean 154
business logic
business methods
business tier
C
callback methods
callbacks
cascade delete 215–216, 221, 226, 387
cast 49
characteristics of an entity bean 131
checked exceptions 294
client tier 5, 9–10, 15
client view
CMP
CMP fields
<cmp-field> 213
CMR 69, 384–386
CMR fields
<cmr-field> 215
<cmr-field-name> 215
coding the bean class 32
coding the bean interfaces 33
Collection of instances 209
collections in path navigation 234
communicating with the container 189
component interface
component-based architecture 15
concurrent access to a session bean 75
consistency 269
container callbacks methods
container managed transaction demarcation
container requirements 16, 20
container-managed persistence 154
Container-managed persistent fields 212
container-managed relationship fields 214
container-managed relationships 207
container-managed transaction demarcation 274
<container-transaction> 283
conversational state 58, 81–83, 109
create() method
CreateException
creating an entity bean 168
creation of a stateless session bean 83
CustomerBean 127, 143, 212–216
D
database API 10
database API technologies 10
database to entity mapping 128, 229
declarative security, limitations of 319
defining transaction 268
deletingentity from database 195
deployer 13
deployment descriptor 154
deployment descriptor files 187
<description> 313
<destination-type> 259
disabling methods 319
distributed application 8
distributed architecture 4, 6, 8, 12
distributed environment 4–5, 10–11, 14
distributed transaction manager 270
does not exist state 182
DOM 11
DuplicateKeyException 296, 309, 400
DUPS-OK-ACKNOWLEDGE 250
durable subscription 259
Duraility 269
E
EIS tier 9–10
EJB 2.0 14
EJB 2.0 spec 141
EJB 2.1 14
EJB 3.0 14
EJB components 17
EJB container provider 28, 30
EJB Home object 91
EJB Home stub 91
EJB Object 65, 68, 75, 79–80, 366
EJB QL queries 228
EJB query language 227
EJB references 40–41
EJB role of an 29
EJB roles 16, 31–32, 49
EJB security 310
EJB server provider 28, 30
EJB specifications 18, 29, 48
EJB system exceptions 298
EJB tier 5, 9, 15
EJB transactions 267
ejbActivate()
ejbCreate()
EJBException 292
ejbFind method 156, 184, 186
EJBHome 59–62, 64–65, 68–72, 76–78, 364
ejbHome method 184
ejb-jar file 13
ejb-jar.xml
ejbLoad()
EJBLocalHome 69–72, 77, 83, 99, 141–142, 148
EJBLocalObject 83, 95, 99, 141
EJBMetaData interface 61, 70, 133
EJBObject
ejbPassivate()
ejbPostCreate() 161, 168–169, 197, 296
<ejb-relation> 215
<ejb-relationship-role> 215
<ejb-relationship-role-name> 215
ejbRemove()
ejbSelect method 184, 187
ejbStore()
Enterprise JavaBeans 3
entities in the database 131
entity and entity bean 129
Entity bean and entity bean instance 130
entity bean class 129
entity bean instance 129–130, 184, 195
entity bean lifecycle 182
entity bean persistence 152
entity bean remote home interface 131
entity beans 125, 151, 181
entity beans and database tables 203
Entity, entity bean, and entity bean instance 129
EntityBean interface 152
EntityContext 183, 189
environment entries 40, 49
exception handling 293
exceptions in EJB 295, 305
exceptions tree in Java 293
<exclude-list> 319
F
findByPrimaryKey() 134
finder methods 134–135
FinderException 297
FROM clause 242, 388
functionality of an entity bean 127
G
getByPrimaryKey(Ö) 134
getCallerPrincipal() 95, 320
getEJBHome() 67
getEJBLocalHome() 256–257, 280
getEJBLocalObject() 37, 95, 165
getEJBMetaData() 61, 70, 133, 141
getEJBObject() 93
getHandle() 67
getHomeHandle() 61, 133
getPrimaryKey() 67
getRollbackOnly() 256–257, 271–272, 279, 286
getStatus() 272, 286, 290–291, 395–396
getUserTransaction() 164–165, 194, 271–273, 279
guaranteed services and APIs 45
H
Handle 67, 69–70, 140, 280
home business methods 190
home interface
home object 35
HTML 9, 13
I
identifiers and input parameters 235
identifying entity beans 172
IIOP compatible types 63, 69, 76–77, 224, 384
IllegalStateException 97, 100, 279, 304–305
implementing a session bean 84
IN expression in EJB QL 239
InitialContext() 35, 39, 42, 73, 88, 143, 250, 302
interface
interoperability 6
introducing entity beans 126
introduction to session beans 82
IS EMPTY 238, 240
IS NOT EMPTY 238
isCallerInRole() 257, 320–321, 323
isIdentical() 68–69, 175, 208, 280
J
J2EE 1.3 8, 12, 14
J2EE 1.4 14
J2EE 1.5 14
J2EE and EJB versions 14
J2EE architecture 3–5, 7–8, 12, 17, 39
J2EE implementation 12
J2EE platform 3, 6–8, 10, 12, 14
J2EE reference implementation 14
J2EE server 7–8, 13–14
J2SE 8, 45–46, 49
JAAS 11–12
Java Message Service 45
Java Server Pages. See JSP
JavaBeans and Enterprise JavaBeans 23
JavaMail 12
JAXP (Java API for XML Parsing) 11–12, 45, 51, 361
JDBC API 12
JMS 11–12
JMS (Java Messaging Service) 19, 248
JMS consumer 248
JMS destination 250
JMS message consumer 249
JMS producer 248
JNDI (Java Naming and Directory Interface)
JNDI lookup 131
JSP 4, 9, 12–13, 29, 45
JTA (Java Transaction API) 10, 12, 20, 45
L
lifecycle management 20
LIKE expression in EJB QL 235, 238–240
local home interface 142
local interfaces 69–70, 141
local transaction manager 270
locating the home interface 143
location transparency 21
lookup. See JNDI lookup
M
mail service 11
managing persistence and relationships 211
many-to-many relationships 210
message listener 250
message service 11
message-driven beans 247
<message-driven> 258
<message-driven-destination> 258–259
MessageListener 248, 252–253
method permissions 314
<method> 314
<method-intf> 317
<method-name> 230, 314
<method-param> 283
<method-params> 230, 283
<method-permission> 314
methods
methods from the component interface 156
methods from the home interface 155
missed ejbRemove() calls 115
multiple-field key 173
multiplicity in relationships 203, 210, 215–216, 220–223, 226
Multitier architecture 5
N
naming service 10
navigating to the related bean 234
nested transactions 273, 288
Never attribute in transactions 159, 275–279, 281, 283
newInstance() 89–91, 100, 163, 183–184, 254–255
non-durable subscription 258
NoSuchEntityException 300, 305, 307, 309, 397–400
NoSuchObjectException 68, 115, 299–300, 305
NoSuchObjectLocalException 72, 115, 121, 299–300, 305
NOT BETWEEN 238
NOT IN expression in EJB QL 239
NotSupported attribute 275–281, 286, 288–291, 308
O
object serialization 111
ObjectNotFoundException
one-to-many relationships 208
one-to-one relationships 207
onMessage(Ö) method 249
operators and expressions 237
OrderBackupBean, 205
OrderBean 205
overlap of roles 31
overloaded methods 316
overview of the EJB architecture 18
P
Passivation
path navigation in EJB QL 233
performance 6
persistence management 20, 45
<persistence-type> 213
persistent data storage 58
persistent fields 152
persistent fields of an entity bean 203
persistent state 154
pool 58, 62–65, 87, 89–90
pooled state 182–184, 186, 196–199, 254–255
portability 6
PortableRemoteObject 35, 42, 74, 143, 302
primary key
<prim-key-class> 213
<primkey-field> 213
principals and roles 311
programmatic security 311, 318, 320, 323–324
programming restrictions 37
programming security 319
propagating security identity 317
publish/subscribe messaging model 258
Q
Queries 231
query domain 235
query domains and navigation 233
query return types 232
<query> 229
<query-method> 229
Queues in messaging 258
R
ready state 185
reestablishing relationships 210
references to security roles 321
relational database 14, 129
relationship between two entity beans 206
<relationship-role-source> 215
relationships, one to one 207, 210
reliability 25
remote access service 11
remote client 57–59, 65, 69–70, 72–77, 79
remote component interface 65, 138
RemoteException
remove methods 136
remove protocols 221
RemoveException 62, 64–65, 73, 136–137, 297
removing a bean instance 195
removing a session bean instance 114
Required attribute in transactions 275, 277–281, 394–396
RequiresNew attribute in transactions 274–279, 281, 283–284, 288–291, 394–396
re-usability 23
role of EJB QL in persistence 228
<role-link> 322
rollback() 273, 290–291, 396
<run-as> 318
RuntimeException 294–296, 298–299, 303–304, 307, 397
S
SAX (Simple API for XML) 11
scalability 5–6
security 31, 47, 310, 324
SELECT clause in EJB QL 186, 227, 230–236, 238–242, 388
select methods 231
select queries 187
session bean
setEntityContext()
setSessionContext()
single-field key 173
software components 18, 21, 40, 47
stateful life cycle 106
stateful session bean 26, 49, 58, 62–64, 68
stateless session bean 58, 60–65, 68, 76–80
<subscription-durability> 259
Supports attribute in EJB QL 275–279, 281, 289–291, 394–396
synchronizing entity and entity bean 153
synchronous communication 25–27, 47
system exceptions 304
T
to 191, 193
Topic destination 258
transaction attributes
transaction definition 268
transaction demarcation 270
transaction management 20, 51, 360
transaction rollback 191, 269
transaction service 10
TransactionRequiredException 300, 307, 397
TransactionRequiredLocalException 300
TransactionRolledbackException 300, 308, 399
TransactionRolledbackLocalException 300
transactions

