Manning Publications wrote:Building on the bestselling first edition, EJB 3 in Action, Second Edition tackles EJB 3.2 head-on, through numerous code samples, real-life scenarios, and illustrations. This book is a fast-paced tutorial for Java EE business component development using EJB 3.2, JPA 2 and CDI. Besides covering the basics of EJB 3.2, this book includes in-depth EJB 3.2 internal implementation details, best practices, design patterns, and performance tuning tips.
Thought "EJB 3 in Action" (first edition) was a great book, so I'm not surprised that I like the second edition as well. In fact a snippet from my first review is on page one of the second edition.
I really liked the story at the beginning comparing 3 reincarnations to the three versions of EJB. The Turtle Shipping Company and Snail Trucking example was also very cute. As were the chicken and frog.
One page 17, the text after the example talks about not needing an interface, but the code example has an interface. There is also a mix of EJBs and EJB's used in the book. I think this comes from having five authors. (The four real authors plus them originally. Because writing is like code in that after a certain point it is like someone else wrote it.) The fact that these are the worst things I can say about the book, is a good thing though.
The explanations were great especially the section on AOP, comparing EJB vs EJB Lite and when to use each session bean type. There are good warnings and caveats throughout. There was also a great intro to Web Sockets.
I thought I knew about the topic and still managed to learn a few things. I learned Seam became CDI, that you can use a constructor in the select clause of queries and about the embeddable container.