EJB 3 in Action tackles EJB 3 and the Java Persistence API head-on, providing practical code samples, real-life scenarios, best practices, design patterns, and performance tuning tips. This book builds on the contributions and strengths of seminal technologies like Spring, Hibernate, and TopLink.EJB 3 is the most important innovation introduced in Java EE 5.0. EJB 3 simplifies enterprise development, abandoning the complex EJB 2.x model in favor of a lightweight POJO framework. The new API represents a fresh perspective on EJB without sacrificing the mission of enabling business application developers to create robust, scalable, standards-based solutions.EJB 3 in Action is a fast-paced tutorial, geared toward helping you learn EJB 3 and the Java Persistence API quickly and easily. For newcomers to EJB, this book provides a solid foundation in EJB. For the developer moving to EJB 3 from EJB 2, this book addresses the changes both in the EJB API and in the way the developer should approach EJB and persistence.
Best in deepth EJB usage guide for JEE developers. Definitely not for beginners, but perfect for developers that have some experience with EJB but do not feel comfortable with their knowledge level.
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.
(I really want to give this 4.5 stars, but that isn't an option.)
--- Disclosure: I received a copy of this book from the publisher in exchange for writing this review on behalf of CodeRanch.
EJB In Action Second Edition makes good reading. It provides clear explanations of the various technologies used in EJB. I think that book is a kind of lecture and it is suitable for user who wants to know how different technologies are working like for e.g. when and why use EJB or CDI injection and wants to have well-grounded knowledge about EJB 3.2. In this case the book is definitely good choice. It contains a lot of good tips and hints what should be omitted and hidden traps both at architecture side as well as at coding. The book stresses good practices. This is good If reader has same gaps in knowledge related to JavaEE and EJB 3.2. If reader is seeking for concise book which makes him able to write EJB application at once. He or she should seek for another book. This is not a good starter. This book is very verbose. However it could be great combination between EJB in Action SE and other book. It offers a lot of knowledge which lacks more concise books, it is step further. So if you want better understanding of mentioned in book technologies this is a book for you.