Errata

Chapter 2

Issue 2.1:
Questionable piece:
Page 33, section 2.6.2, 2nd line:
home interface that implements
Replacement:
home interface that extends
Issue 2.2
Section 2.8
Replace Ejb-jar.xml with ejb-jar.xml

Chapter 3

Issue 3.1:
Questionable piece:
Last line, first paragraph, section 3.3, page 65:
to communicate with the entity bean.
Replacement:
to communicate with the bean
Or
to communicate with the session bean.
Issue 3.2:
Questionable piece:
Table 3.3, page 73 AND P72, section 3.4.2, 1st bullet point in 'Exceptions in local interfaces': capital J in Javax
Replacement: javax

Chapter 4

Issue 4.1:
Questionable piece:
Page 93, 2nd line from bottom:
eight methods
Page 94, 1st line, and page 96, 1st line::
10 methods
Replacement:
Replace eight with seven, and 10 with 9.
Issue 4.2
Questionable piece:
Page 98, table 4.4:
Get a reference to the transaction; BMT beans. Yes No
Replacement:
Replace No with Yes.

Chapter 6

Issue 6.1:
Questionable piece:
Page 134, 450.
getByPrimaryKey
Replacement:
findByPrimaryKey
Issue 6.2:
Questionable piece:
Page 144 step 7:
7 The container returns the EJBHome stub to the client.
Replacement:
Replace the EJBHome with EJBObject

Chapter 7

Issue 7.1:
Questionable piece:
Page 379, Q4
Answer: B
Replacement:
Answer: B and C
Issue 7.2
P156, 2nd line in 2nd ALERT block:
ejbPost should be replaced with ejbPostCreate

Chapter 9
Issue 9.1:

Page 225, Q4
Swap options B and E to be consistent with the same question in Appendix D.
Chapter 11
Issue 11.1:

Questionable piece:
Page 256, Table 11.1
Hyphens (-) in the names of the methods.
Replacement:
Remove the hyphens from the names of the methods.

Chapter 12

Issue 12.1:
Questionable piece: Page 279
First paragraph, line 10
go through the second sequence
Replacement:
compare the second sequence of method calls in figure 12.2 with the first column in table 12.2

First paragraph, line 12
Replace Supports with Required

Second paragraph, line 5
business method will execute
Replacement:
business method may execute
Explanation: Depends upon how the business method was called (see table 12.1).
For the the same spirit: page 394, Q 4, line 1
Replace: will with may.
Issue 12.2:
Questionable piece: Page 286
4th line from the bottom
A BMT bean cannot invoke the getRollbackOnly() or setRollbackOnly() methods;
Replacement:
A BMT bean cannot invoke the getRollbackOnly() method;Pparagraph 1 line 2:
Replace Requires with RequiresNew.
Issue 12.3:
Questionable piece:
Page 396, Answer to Q 10
a. Required or Mandatory.
Replacement:
a. Required, Supports, or Mandatory
Issue 12.4
1. P254, end sentence after void; in 1st bullet point:
should read 'and ejbRemove must not have any arguments and setMessageDrivenContext must have one'.
2. P270, section 12.2, 7th line:
latter should be replaced with former
3. P278, table 12.2:
All references to 'Requires' should be 'Required'
This occurs in columns 1, 2, & 3

Chapter 14
Issue 14.1:
Questionable piece:
Page 401, Answer to Question 4
Answer: B
Replacement:
Answer: B, D
Explanation: is a sub-element of .

Appendix D

Issue D.1:
Questionable piece:
Page 367, Answer to Question 1:
EnterpriseBean
Replacement:
EnterpriseBean whose methods are exposed to the client.
Explanation:
Actually the SessionBean, EntityBean, and MessageDrivenBean do extend EnterpriseBean, but the methods of the javax.ejb.EnterpriseBean are not exposed to the client, and are used by the container to manage the bean instances.
Issue D.2
Page 366: Replace 8 C with:
L cannot call methods on R (with R on a remote machine).