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 00 I forgot will update later |
you forgot to update SessionContext and EJBContext Interfaces, in 3.1 there are additional methods wasCancelCalled() and getContextData() respectively. |
perry | Jan 25, 2011 |
Page 20 code example |
Several of the example code snippets in Chapter 3 use "prototype" and "function" as if they were Java keywords. |
rbergerpa42 | Jan 12, 2011 | |
Printed | Page 37 Sample code for CalculatorIntegrationTestCase, in comment for field "calc." |
Comment is "The EJB 3.1 no-interface view view of the CalculatorEJB." "View" is repeated. |
Ken Hommel | Dec 19, 2010 |
Page 46 bottom |
@Stateless |
Randolf Rothfuss | Sep 01, 2011 | |
Page 46 bottom |
@Stateless |
Randolf Rotfuss | Sep 01, 2011 | |
PDF, Other Digital Version | Page 47 Second to last paragraph |
The paragraph talks about the EJBContext.lookup() method and references a an "example just shown to obtain the cipher's passphrase" but this example first appears quite a bit later on page 59. |
Andreas Ntaflos | Apr 29, 2011 |
Page 55 bottom |
@Stateless(name = "EncryptionEJB") |
Randolf Rothfuss | Sep 01, 2011 | |
Printed | Page 55 Last paragraph |
Original text: |
Louise Elmose Eriksen | May 20, 2013 |
Printed | Page 82 6th paragraph |
Text says a bean provider may optionally prohibit parallel invocations upon a particular stateful bean via the use of @javax.ejb.ConcurrencyManagement (with associated fig 7-4). |
Bruce Link | Jan 24, 2011 |
Page 82 6th paragraph |
[Original] |
SATO Naoki | Jun 10, 2011 | |
Page 83 Figure 7-4 |
[Original] |
SATO Naoki | Jun 11, 2011 | |
Printed | Page 84 3rd paragraph |
Incorrect html reference for AtomicInteger (actually refers to AtomicBoolean) |
Bruce Link | Jan 24, 2011 |
Printed | Page 87 2nd code snippet |
in |
Markos Fragkakis | May 02, 2011 |
Page 106 footer |
REQUEST FOR CLARIFICATION |
Anonymous | Jun 13, 2011 | |
Page 107 2nd code snippet |
getInt("email") should be getString("email") |
Rodrigo Piovezan | Dec 31, 2011 | |
Page 108 and 110 Various - see description |
Apparently some copy and paste from the stateless bean lifecycle into the MDB lifecycle section has left the following behind: |
Rodrigo Piovezan | Dec 31, 2011 | |
Printed | Page 110 footnote |
The footnote says: |
Louise | Jun 18, 2013 |
Printed | Page 116 Code snippet |
The same parameter connectionFactory is injected twice - which wont compile. |
Louise | Jun 18, 2013 |
Printed | Page 118 second paragraph, first code example in page |
Is: |
Thomas Locher | Feb 06, 2011 |
Printed | Page 130 2nd paragraph |
The preceeding example code and text describe an Employee class, but the last sentence of "Entities are POJOs" refers to a Customer class. |
Anonymous | Jun 06, 2011 |
Printed | Page 131 Code example in the middle of page. |
In getTheWorldsBestGuitarist(): |
Anonymous | Mar 27, 2012 |
Printed | Page 143 last paragraph |
For persist() method text states "TransactionRequiredException is thrown if this method is invoked on a transaction-scoped persistence context." It should qualify this and add "and there is no transaction" |
Bruce Link | Jan 30, 2011 |
Printed | Page 145 code on 2nd paragraph |
dave.setName(NAME_DAVE_NEW); |
Achilleas Mantzios | Jan 17, 2012 |
Printed | Page 145 Code example. |
The same NAME_DAVE_NEW is used both to create a new Employee dave and then to change Employee dave's name to a *new* value. |
Anonymous | Mar 27, 2012 |
Printed | Page 147 4th paragraph |
[Original] |
Surendra | Jan 15, 2012 |
Page 156 code sample |
[Original] |
SATO Naoki | Jul 10, 2011 | |
Page 156 Last paragraph |
[Original] |
SATO Naoki | Jul 10, 2011 | |
Printed | Page 183 8th line |
Expected: REFERENCES "PUBLIC"."EMPLOYEE"(ID) |
Munkhbayar | Oct 01, 2013 |
Printed | Page 208 'Parameters' - both code examples |
In the code you present, you define: |
PedroKowalski | Aug 29, 2011 |
Printed | Page 223 The WHERE Clause and MEMBER OF |
SELECT t |
Achilleas Mantzios | Jan 26, 2012 |
Printed | Page 237 Entity Listeners |
there is no postInsert annotation. There is postPersist. |
Achilleas Mantzios | Jan 26, 2012 |
Printed | Page 258 1st paragraph |
under the ejb/referenceToMyEJB2 --> ejbs/referenceToMyEJB2 |
Markos Fragkakis | Mar 03, 2011 |
Page 258 1st paragraph |
such as "javax.annotation.EJB" instead of "javax.ejb.EJB" |
Richard Grin | May 14, 2013 | |
Printed | Page 261 XML snippet |
Closing tag for <ejb-local-ref> is </ejb-ref>. |
Markos Fragkakis | May 06, 2011 |
Printed | Page 306 Top |
The Code-Snippet will not work properly, in the case of an exception. |
Robert Meintrup | Jun 18, 2012 |
Printed | Page 306 3rd paragraph |
In the code block example, a UserTransaction variable is declared named "tran" but then another variable is used to manage the user transaction named "utx". It should be the same variable name. |
Duarte Figueira | May 01, 2017 |
Page 333,334 Last code snippet(333), First code snippet(334) |
package org.ejb3book.annotations; |
Anonymous | Aug 24, 2011 | |
Page 333 Description of UserTransaction's methods |
In the descriptions of the UserTransaction's interface methods says that IllegalStateException and SystemException are "checked" exceptions, when, actually, they are "unchecked" exceptions: http://stackoverflow.com/questions/6115896/java-checked-vs-unchecked-exception-explanation |
JOAO HENRIQUE DA SILVA MASSAN | Jun 18, 2016 | |
Printed | Page 387 Code listing for TravelAgentBean |
The EntityManager em is declared twice, once specifically as private with a unitName qualifier in the injection annotation. I don't believe that is intentional. |
Joe Hubert | Aug 14, 2011 |
Page 410 First heading |
The first heading on the page says "Obtain the source using Subversion SCM", but the SCM used is git. The heading should thus say "Obtain the Source Using Git SCM" |
Pedro Henrique Rausch Bello | Dec 03, 2010 | |
Page 412 Body of Test In-Container section |
Arquillian provides a easy mechanism --> Arquillian provides an easy mechanism |
Pedro Henrique Rausch Bello | Dec 03, 2010 | |
Printed | Page 461 Paragraph EncryptionBean.java |
I think that the Appendix C on Chapter 6 contains some code from chapter 5 (pages 461 - 482 repeat pages 430 - 451). |
Markos Fragkakis | Nov 02, 2010 |
Printed, Other Digital Version | Page 645 Last paragraph |
Javadoc for open() method reads: "Closes the school for Business", which is copied from the Javadoc of the method close(). Should be "Opens the school for Business". |
Markos Fragkakis | Dec 14, 2010 |