Errata
The errata list is a list of errors and their corrections that were found after the product was released.
The following errata were submitted by our customers and have not yet been approved or disproved by the author or editor. They solely represent the opinion of the customer.
Color Key: Serious technical mistake Minor technical mistake Language or formatting error Typo Question Note Update
Version | Location | Description | Submitted by | Date submitted |
---|---|---|---|---|
Printed | Page xxiv 3rd bullet |
J2EE SDK *does* include the API doc. See |
Anonymous | |
Printed | Page 3 local component matches (c) methods must NOT throw 'java.rmi.RemoteException' |
Anonymous | ||
Printed | Page 4 local home matches (d) can be used to retrieve an EJBLocalObject |
According to the API, EJBLocalHome interface contains only ONE single method, i.e., |
Anonymous | |
Printed | Page 60 first paragraph (handwriting to mock exam answers) |
The handwriting indicating where to find the specific theme in the specs says it |
Anonymous | |
Printed | Page 60 mock exam answers - 3rd question answer - B |
The answer 'B' (Container managed persistence) is ticked in the book. But Container |
Anonymous | |
Printed | Page 61 paragraph at bottom |
The sentence "How does the client call methods it?" is obvously missing some words. |
Anonymous | |
Printed | Page 71 Lower right diagram. |
Shouldn't the method invocation to the Remote Dog object be "trainPet(myDog)", not "trainPet(newDog)"? |
Eric Larson | May 11, 2010 |
Printed | Page 82 1st paragraph from the bold notes on the right column |
In page 82 it is stated that Remote Object(and according to the picture of this page |
Anonymous | |
Printed | Page 104 Sharpen your pencil True and False questions |
The last True or False question - |
Anonymous | |
Printed | Page 126 last paragraph |
"There's only one interface here that could be a stateless session |
Anonymous | |
Printed | Page 130 answer, line 3 |
according to the API documentation, the exception type should be |
Anonymous | |
Printed | Page 139 code snippet at bottom of page |
I think that the line |
Anonymous | |
Printed | Page 153 First paragraph |
It says: "If local home interfaces don't have handles, then there's no way...". |
Anonymous | |
Printed | Page 170 3rd Question |
In the first line of this question it was stated that remote client R has valid references to session beans 'A' and 'B'. But from the following line we can understand that 'A' has a local reference for 'B'. That means 'B' must be a local bean (extends local component interface and local home interface). Then how can 'R', a remote client, have a valid reference for 'B'? |
Anonymous | Sep 26, 2008 |
Printed | Page 171 Question 5 : Choice C. |
Question 5, choice C states: "The remove() method in the component |
Anonymous | |
Printed | Page 188 Top of page, bean's "thinking balloon" |
It reads, "...by giving me a context and calling my create()." |
Anonymous | |
Printed | Page 203 bottom of page in the main method of AnimalTestDrive class |
The first line of the main method reads: |
Anonymous | |
Printed | Page 225 diagram 1 |
ejbCreate() missed |
Anonymous | |
Printed | Page 228 ejbCreate,ejbRemove list |
in the list of things you can do from stateless bean methods there is an omission. |
Anonymous | |
Printed | Page 232 1st paragraph, 1st line |
In the book: "Local home interfaces must return... Remote home interfaces must return...". |
Anonymous | |
Printed | Page 241 transactions bullets section |
SessionContext's setRollbackOnly method signature differs from j2ee1.3 api |
Anonymous | |
Printed | Page 249 Q17 |
Answer provided was: |
Anonymous | |
Printed | Page 252 Question 6 |
Which session bean interface can contain this method? |
Anonymous | |
Printed | Page 268 last 3rd line |
ejbFindPrimaryKey should be changed to ejbFindByPrimaryKey |
Anonymous | |
Printed | Page 268 Public class declaration |
Class should be declared abstract: |
Anonymous | |
Printed | Page 291 Hand-written comment with answer 3A |
Besides the comment 'we said existing :)', it should also be noted that ejbCreate |
Anonymous | |
Printed | Page 292 Hand-written comment with answer 5A |
Besides the comment 'we said EXISTING', it should also be noted that ejbCreate cannot |
Anonymous | |
Printed | Page 292 Question 6 |
The explanation for answer B is not entirely correct. If two keys pass the equals() |
Anonymous | |
Printed | Page 312 CustomerBean methods |
The home interface defines four methods: create(), findByPrimaryKey(), findByCity() and updateAll(). The "notes" on the left side of the page states that "You must match every home business method with an ejbHome<methodName>". The CustomerBean in the center column shows that updateAll() has the corresponding method ejbHoneUpdateAll() but the two find methods have the same names as in the CustomerHome interface. Shouldn't they also be ejbHomeFindByPrimaryKey() and ejbHomeFindByCity()? |
Anonymous | Dec 14, 2011 |
Printed | Page 316, 318 ejbCreate() |
ejbCreate() calls the virtual field setters for last name, first name, and primary |
Anonymous | |
Printed | Page 318 the whole thing |
The book says that this is a complete implementation of the CustomerBeanCMP. The |
Anonymous | |
Printed | Page 326 steps 1 and 2 |
Step 2 should come before step 1 according to OID on page 215 of EJB spec 2.0 |
Anonymous | |
Printed | Page 327 Last paragraph |
In the 3rd sentence, "need to use a session context," should be "need to use an |
Anonymous | |
Printed | Page 345 Item 3, page 345. |
"A bean is selected from the pool to run the ejbUpdateAll() method." |
Anonymous | |
Printed | Page 355 order of ejbPassivate() and ejbStore() in the timeline |
On page 352 it says that the "Container always calls ejbStore() before |
Anonymous | |
Printed | Page 370 Question 13, Item C |
Says "C. All fields in the primary key class must be declared public." |
Anonymous | |
Printed | Page 381 In Class Movie in the UML Diagram |
the method getActors() in class Movie is missing |
Anonymous | |
Printed | Page 395 Last Tag |
The deployment descriptor should end with a </ejb-jar> tag |
Anonymous | |
Printed | Page 403 4th line of the lower right notes |
...select method The "/" means the first.... |
Anonymous | |
Printed | Page 408 2nd paragraph, last line |
the word "home" should be changed to "local" |
Anonymous | |
Printed | Page 411 First sentence in the first paragraph |
In the first line "and let's you put....." should be "and lets you put ......" |
Anonymous | |
Printed | Page 428 question 11 |
according to the EJB 2.0 specification, a cmr-field must begin with a lowercase |
Anonymous | |
Printed | Page 429 Question # 15 |
Answer Option D : |
Anonymous | |
Printed | Page 432 Question 4 |
The answer mentions B as correct (b2.getFoo() == null). But as the CMR relationship |
Anonymous | |
Printed | Page 432 Answer B for the question number 4 |
The question states "unidirectional relationship". So, I think, Bar simply does not |
Anonymous | |
Printed | Page 434 Question 12 |
Answer D is incorrect. |
Anonymous | |
Printed | Page 470 Right column, last two lines |
In the book: "...you must know that if you invoke getRollbackOnly..." |
Anonymous | |
Printed | Page 504 2 paragraph, example |
Under "Option2", in the example, in the first container-transaction element there are |
Anonymous | |
Printed | Page 508 fifth point |
"Can be used to keep a transaction open across multiple invocations to a stateful method bean." |
Anonymous | |
Printed | Page 514,515 Inside the pool diagram |
inside the pool diagram |
Anonymous | |
Printed | Page 515 Answer to the Puzzle |
The answer is valid for stateless session beans, isn't? |
Anonymous | |
Printed | Page 520 3rd question |
It says "Which two are true..." but there are three correct answers. |
Anonymous | |
Printed | Page 551 Second diagram |
Where it says javax.ejb package |
Anonymous | |
Printed | Page 551 remote client will get these (checked) |
TransactionRolledBackException and TransactionRequiredException are in |
Anonymous | |
Printed | Page 559 2nd paragraph |
In the book: |
Anonymous | |
Printed | Page 559 4th paragraph, 2nd line |
"(if the client were local, he'd get a RemoteException)" |
Anonymous | |
Printed | Page 560 !st paragraph |
"A session bean calls getPrimaryKey() on its context ... |
Anonymous | |
Printed | Page 564 & 567 question number 5 (answers) |
The TransactionRolledbackLocalException exception is member of the javax.ejb package |
Anonymous | |
Printed | Page 596 Question 2 |
Option B checked as a correct answer. It says: "They can be listed in the unchecked element." |
Anonymous | |
Printed | Page 611 4th line from the bottom |
The line gives Bean as a value of res-auth element |
Anonymous | |
Printed | Page 636 question 16 answer A |
If an ejb-jar file only contains message-driven beans, then it does not contain any home or component interface. |
Anonymous | |
Printed | Page 672 Question 46, option A |
Option A says: "Primary key fields must be cmp-fields." The handwritten comment says: |
Anonymous | |
Printed | Page 673 Ques 49 |
answer choice c: |
Anonymous | |
Printed | Page 675 Question 55 |
The question starts with: "When creating an entity bean..." |
Anonymous | |
Printed | Page 701 bottom |
EJBLocalObject is missing the remove() method. |
Anonymous |