xxvi. 4th line
Change:
...
www.manning.com/EJB3inAction.com
...
To:
...
www.manning.com/EJB3inAction
...
Throughout the book
Change:
...
JDBCTemplate and JMSTemplate ...
To:
...
JdbcTemplate and JmsTemplate ...
Page 16
Change:
...
<local>ejb3inaction.example.Hello</local> ...
To:
...
<local>ejb3inaction.example.HelloUser</local> ...
Page 37 - Chapter 2
Change:
...
>local<ejb3inaction.example.Hello>/local<
...
To:
...
>local<ejb3inaction.example.HelloUser>/local<
...
Page 55
Change:
...
MainClass ...
To:
...
Main-Class ...
Page 58
Change:
...
private billOrder(Order order) ...
To:
...
private void billOrder(Order order) ...
Page 86
Change:
...
BidManagerBid ...
To:
...
BidManagerBean ...
Chapter 3, listing 3.2 (page 97)
Change:
...
public interface BidderAccountCreator implements Remote
...
To:
...
public interface BidderAccountCreator extends Remote
...
Page 125/126 - Chapter 4, listing 4.2
Page 130 - Chapter 4
DUPS_OK_ACKNOWLEDGE should be Dups-ok-acknowledge
AUTO_ACKNOWLEDGE should be Auto-acknowledge
CLIENT_ACKNOWLEDGE should be Client-acknowledge
Page 192 - Chapter 6 - 12th line from the top
REQUIRED_NEW should be REQUIRES_NEW
Change:
...
@RunAS("ADMIN")
@RolesAllowed("CSR")
public void cancelBid(Bid bid, Item item) {...}
...
To:
...
@RunAS("ADMIN")
@RolesAllowed("CSR")
public class BidManagerBean implements BidManager{
public void cancelBid(Bid bid, Item item) {...}
}
...
Page 208
Change:
...
@DeclareRoles("BIDDER", "CSR", "ADMIN") ...
To:
...
@DeclareRoles({"BIDDER", "CSR", "ADMIN"}) ...
Change:
...
@RolesAllowed( "CSR, ADMIN") ...
To:
...
@RolesAllowed({ "CSR", "ADMIN"}) ...
Chapter 7, page 228, 3rd line
There's an extra colon ":" in "@Entity: annotation"
Chapter 7, page 233, 2nd line from bottom
There's an extra space in "java. lang.Long"
Chapter 7, page 234, 1st line of "The @Id annotation"
Change:
...
Using the javax.persistence.Id annotations
...
To:
...
Using the javax.persistence.Id annotation
...
Chapter 7, page 236, listing 7.2
Change:
...
otherCategory.name
...
To:
...
otherCategoryPK.name
...
Chapter 7, page 237, listing 7.3
Change:
...
otherCategory.name
...
To:
...
otherCategoryPK.name
...
Chapter 7, page 238, 11th line
Change:
...
category.catetogyPK.name
...
To:
...
category.categoryPK.name
...
Chapter 8, page 256, listing 8.3
Change:
...
CATEGORIES_ITEMS table foreign key
...
To:
...
CATEGORIES table foreign key
...
Chapter 8, page 279, last line of 1st paragraph
Change:
...
BIDS_ITEM_ID
...
To:
...
BID_ITEM_ID
...
Chapter 8, page 288, listing 8.13
Change:
...
@Entity
@Table(name="BIDDERS")
@DiscriminatorValue(value="B")
@PrimaryKeyJoinColumn(name="USER_ID")
public class Seller extends User ...
...
To:
...
@Entity
@Table(name="BIDDERS")
@DiscriminatorValue(value="B")
@PrimaryKeyJoinColumn(name="USER_ID")
public class Bidder extends User ...
...
Page 360
Change:
...
c.items.user.firstName ...
To:
...
c.user.firstName ...
Page 361
Change:
...
c.items.user.contactDetails.email ...
To:
...
c.user.contactDetails.email ...
Chapter 11, page 394 and 424,
Change:
...
ClassNoDefException
...
To:
...
NoClassDefFoundError
...
Chapter 11, page 394, 6th line from bottom
...
To:
...
CLASSATH
...
To:
...
CLASSPATH
...
Chapter 11, page 403, listing 11.3
Change:
...
</ejb-JAR>
...
To:
...
</ejb-jar>
...
Chapter 11, page 404/405, table 11.3
Chapter 11, page 410, listing 11.5
orm.xml's indentation is not correct. It should be under META-INF, like persistence.xml
Chapter 11, page 421, table 11.5 1.
Change:
...
@InverseColumn
...
To:
...
inverseJoinColumns
...
Change:
...
@ExcludeSuperClassListeners
...
To:
...
@ExcludeSuperclassListeners
...
Chapter 12, page 437, 2nd line
Change:
...
"ItemManagerBean(1) has a findItemByItemId"
...
To:
...
"ItemManagerBean(1) has a findByItemId"
...
Chapter 12, page 437
Change:
...
public class ActionBazaarServlet implements GenericServlet {
...
To:
...
public class ActionBazaarServlet extends GenericServlet {
...
Chapter 12, page 438,
Change:
...
placeBid.addBid(itemId, userId, bidPrice)
...
To:
...
placeBid.addBid(userId, itemId, bidPrice)
...
Page 473
Change:
...
Seller.setStatus("Gold"); ...
To:
...
seller.setStatus("Gold"); ...
Page 624
Change:
...
Corresponding annotation: @javax.ejb.Session ...
To:
...
Corresponding annotations: @javax.ejb.Stateless and @javax.ejb.Stateful ...
page 620
Change:
...
@ExcludeSuperClassListeners
...
To:
...
@ExcludeSuperclassListeners
...