Errata

The Java Enterprise CD Bookshelf

Errata for The Java Enterprise CD Bookshelf

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.

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 1
chapters 3 and 4

Chapters 3 & 4 of the EJB book are missing from the CD-ROM.

Anonymous   
Printed Page 4.2.10
In "Enterprise JavaBeans, 2nd Edition", Chapter 4 Section 2-10, the last paragraph

Once a JNDI connection is established and a context
is obtained from the getIntialContext() method, the
context can be used to look up the EJB home of the Cabin
bean:

I think "getIntialContext() method" should be "getIintialContext() method"
(letter "i" is forgotten).

Anonymous   
Printed Page 6.2
Enterprise JavaBeans

I noticed an error on your Enterprise Java Beans. Under the following topic, I
omitted part of the chapter and give you some guide, please read on.

6.2. Bean-Managed Persistence

6.2.10. ejbFind( ) Methods
EJB 1.0 empty sets and exceptions

finally {

try {

if (result != null) result.close();

if (ps != null) ps.close();

if (con!= null) con.close();

} catch(SQLException se){

se.printStackTrace();

}

}

}

The mandatory findByPrimaryKey() method uses the primary key to locate the
corresponding database record. Once it has verified that the record exists,
it simply returns the primary key to the container, which then uses the key
to activate a new instance and associate it with that primary key at the
appropriate time. *****If the there is no record associated with the
primary key, the method throws a ObjectNotFoundException. ***** read this
sentence /// ;~ )

The ejbFindByCapacity() method returns an enumeration of primary keys that
match the criteria passed into the method. Again, we construct a prepared
statement that we use to execute our SQL query. This time, however, we
expect multiple results so we use the java.sql.ResultSet to iterate through
the results, creating a vector of primary keys for each SHIP_ID returned.

6.2.11. EJB 1.1: Deploying the Bean-Managed Ship Bean

Anonymous   
Printed Page 34
2nd paragraph; The code snippet reads

con.setTransactionIsolation(TRANSACTION_READ_COMMITTED)

It should read:

con.setTransactionIsolation(Connection.TRANSACTION_READ_COMMITTED)

since the constant is static.

Anonymous   
Printed Page 35
middle of the page; The code snippet reads

CallableStatment cstmt ...

It should read:

CallableStatement cstmt ...

Anonymous   
Printed Page 41
4th paragraph

At the beginning of the 4th paragraph, in the sentence "To store an object ...
and the setObject() method..." the article "the" is written using the wrong
font face (Letter Gothic instead of the normal font).

Anonymous   
Printed Page 75
2nd paragraph

In the code snippet, the line

local.bind(server,"Server");

should be:

local.bind("Server",server);

since the signature of the method "bind" takes first the name of the object and
then the object.

Anonymous   
Printed Page 87
1st paragraph;

In the fourth line, "...it implementation" should read: "...its implementation"

Anonymous   
Printed Page 108
4th paragraph

In the second-to-last line, "a cross" should read: "across"

Anonymous   
Printed Page 131
Figure 5-3; The IP address in the browser depicted in Figure 5-3 reads

http://127.0.1:8080/servlet/AtmServlet

It should read:

http://127.0.0.1:8080/servlet/AtmServlet

Anonymous   
Printed Page 140
1st paragraph

In the second line, "ServletOuputStream" should be: "ServletOutputStream".

Anonymous