Errata

Just Spring

Errata for Just Spring

Submit your own errata for this product.

The errata list is a list of errors and their corrections that were found after the product was released. If the error was corrected in a later version or reprint the date of the correction will be displayed in the column titled "Date Corrected".

The following errata were submitted by our customers and approved as valid errors by the author or editor.

Color key: Serious technical mistake Minor technical mistake Language or formatting error Typo Question Note Update

Version Location Description Submitted By Date submitted Date corrected
Printed
Page 51
4th paragraph

Paragraph starts "Now let's looks at ..." should read "Now let's look at ..."

Charles Simon  Feb 10, 2013  Feb 26, 2013
PDF
Page 46
last paragraph before the "Hibernate" section

change "I will advise you to refer Spring?s API for the template methods and their usage." to "I will advise you to refer to Spring?s API for the template methods and their usage."

george thomas  Jan 22, 2013  Feb 26, 2013
PDF
Page 15
first paragraph after Example 2-7

change "You should refer the cleanUp method as your destroy method in the XML declaration as shown below." to "You should refer to the cleanUp method as your destroy method in the XML declaration as shown below."

george thomas  Jan 22, 2013  Feb 26, 2013
PDF
Page 20

<jms:listener-container>
..
</jms:listener-contaner>

In Closing tag it should say container, "i" is missing...

Kevin Azijn  Oct 29, 2012  Feb 26, 2013
59
Last line before code block in paragraph headed "Returning Domain Objects"

Currently reads:
"Let?s implement for our Movie domain object."

Should read:
"Let?s implement it for our Movie domain object."

Jacob Levine  Oct 17, 2012  Feb 26, 2013
60
Paragraph headed by "Manipulating Data"

"jdbceTemplate.update()" should be " jdbcTemplate.update()".

Jacob Levine  Oct 17, 2012  Feb 26, 2013
58
Paragraph headed by "Using JdbcTemplate"

Currently reads:
"Our MovieDAO has a method getStars() that would take a title and return comma-separated starts list."

Should read:
"Our MovieDAO has a method getStars() that would take a
title and return a comma-separated stars list."

Jacob Levine  Oct 17, 2012  Feb 26, 2013
58
Last paragraph

"JmsTemplate" should be "JdbcTemplate."

Jacob Levine  Oct 17, 2012  Feb 26, 2013
59
Last line on the page

"retrieve" is misspelled as "retreive."

Jacob Levine  Oct 17, 2012  Feb 26, 2013
55
Last paragraph: "JDBC and Hibernate"

Currently text reads:
"However, as many devel-
opers who worked with JDBC will moan about, there is a lot of redundant code that needs to be written (or cut and paste!), even if your intention is to fetch a single row of data."

"cut and paste" should be "cut and pasted".

Jacob  Oct 16, 2012  Feb 26, 2013
44
2nd paragraph: "Point-to-Point Messaging"

Text currently reads:
"Of course, you never know who?s the lucky winner though!a
The destination in a point-to-point model is called a Queue"

An "a" has gotten in after the exclamation point, while the following sentence is missing its period.

Jacob  Oct 16, 2012  Feb 26, 2013
57
3rd paragraph

"And then you then inject the JdbcTemplate reference into your DAO class."

Remove one of the "then"s.

Jacob  Oct 16, 2012  Feb 26, 2013
PDF
Page 26
Example 2.9

The example code for the Trade class compiles but does not run. As written the constructor causes a null pointer exception.

Zymurgeek  Sep 14, 2012  Feb 26, 2013
Printed
Page 12
Nederland

I believe the property values in 'ex16-trades-data.txt' should not have comments around them. At least my test only worked without them.

Andr? van Toly  Jul 23, 2012  Feb 26, 2013
Printed
Page 43
second sentence in second paragraph above end of page


The first sentence states that there are three moving pieces in JMS that are the Provider, Producer, and the Consumer. The second sentence says something inconsistent with that:

"...The provider is the central piece, while the other two are either data providers or consumers."

I would think that should be ".... either data producers or consumers."

Mark Schlegel  Mar 04, 2012  Feb 26, 2012
Printed
Page 18
second sentence on page

annoation

should be

annotation

Mark Schlegel  Mar 04, 2012  Feb 26, 2013
Printed
Page 12
first sentence just after bean xml for id placeholderConfig

responsibilty should be responsibility

Mark Schlegel  Mar 04, 2012  Feb 26, 2013
Printed
Page 10
first bean stanza (the one for type) in "Argument Resolution" section

type=""int

should be

type="int"

Mark Schlegel  Mar 04, 2012  Feb 26, 2013
PDF
Page 21
File Reader bean code at top of page

The opening comment tag <!-- is missing from the File Reader bean. The opening comment tag is there for the FTP Reader, showing that this bean is commented out, appropriately.

Note from the Author or Editor:
Thank you Patrick for spotting this. I will update the copy in my next version.

Please pass me your feedback on the book if you can so I can improve the quality.

I appreciate your time.

Thanks again.
Madhu

Patrick Gardella  Oct 19, 2011 
Printed, PDF, , Other Digital Version
Page x
Updates to book 9/16

Added introduction to Preface; added sections "Using Annotations" and "XML Namespaces" to Chapter 2; updated source code throughout.

Note from the Author or Editor:
Taken care in the updated version

hkbauer  Sep 16, 2011 
Printed
Page -
-

The book should contain at least a half page about downloading and setting up the Spring framework.
It would be great to read just a few lines about AOP, Spring MVC, Spring Security, and maybe Spring Web Services.

Note from the Author or Editor:
Will add in future

Donat Szilagyi  Sep 14, 2011 
Printed
Page 9
Mixing Constructor and Setter

Sample code writes:
<constructor-arg componentName="TradeFilereader" />
But I think constructor-arg has no componentName attribute.
At least I couldn't find it in:
http://www.springframework.org/schema/beans/spring-beans-2.5.xsd

Note from the Author or Editor:
Corrected in updated version

Donat Szilagyi  Sep 14, 2011 
Printed
Page 38
2nd paragraph

"This interface has one method called onMethod"
should be
"This interface has one method called onMessage"

Note from the Author or Editor:
Taken care in updated version

Donat Szilagyi  Sep 14, 2011 
Printed
Page 34
Example 4-1

public Message createMessage(Session msg) throws JMSException {
should be
public Message createMessage(Session session) throws JMSException {

Note from the Author or Editor:
Taken care in updated version

Donat Szilagyi  Sep 13, 2011 
Printed
Page 18
Example 2-11

Example 2-11 contains two nested <props> tags. The outer one is closed by </props> but the inner is closed by </list>.

Note from the Author or Editor:
Taken care in updated version

Donat Szilagyi  Sep 09, 2011 
PDF
Page 1
1

The download code link on the Books page goes to an empty page !

Note from the Author or Editor:
Fixed in the updated version

Anonymous  Aug 29, 2011 
Printed, PDF
Page VIII
Sample Code

Is there supposed to be a link to the sample code used in the book?

Romulus Lucic  Aug 07, 2011  Feb 26, 2013
PDF
Page 42
1st paragraph

Instead of: "... and the mapping of the mapping of the MOVIE row" should be "... and the mapping of the MOVIE row..."

Note from the Author or Editor:
Taken care in updated version

Romulus Lucic  Aug 07, 2011 
PDF
Page 38
4th paragraph from top

Instead of "Now, let?s looks at the..." it should be "Now, let?s look at the...".

Note from the Author or Editor:
Taken care in updated version

Romulus Lucic  Aug 07, 2011 
PDF
Page 31
last paragraph

Instead of "while at the same time, all providers are able to publish the messages." should be "while at the same time, all producers are able to publish the messages."

Note from the Author or Editor:
Taken care in updated version

Romulus Lucic  Aug 07, 2011 
PDF
Page 26 and 27
"Publishing custom events" section

At the beginning of the section, TradePersistor is supposed to persist the Trade objects and it should implement ApplicationEventPublisherAware interface.
After the beginning, the TradePersistor class disappears, and it is replaced by TradePersistedEventPublisher wich implements the ApplicationEventPublisherAware interface.
Should it be either TradePersistor or TradePersistedEventPublisher?

Also, the last piece of code from the section - showing the TradePersistedEventListener -is identical to the one in the next section: "Receiving custom Events".
Is this necessary here?

Note from the Author or Editor:
Taken care in updated version

Romulus Lucic  Aug 07, 2011 
PDF
Page 23
before last paragraf

There is a text : "as shown in ??? on page 23." which probably need to have a reference instead of the "???".

Note from the Author or Editor:
Taken care in updated version

Romulus Lucic  Aug 07, 2011