EJB 2 is widely used but it comes at a cost—procedural, redundant code. EJB 3 is a different animal. By adopting a POJO programming model and Java 5 annotations, it dramatically simplifies enterprise development. A cool new feature, its Java Persistence API, creates a standard for object-relational mapping. You can use it for any Java application, whether inside or outside the EJB container. With EJB 3 you will create true object-oriented applications that are easy to write, maintain and extend.EJB 3 in Action is a fast-paced tutorial for both novice and experienced Java developers. It will help you learn EJB 3 and the JPA quickly and easily. This comprehensive, entirely new EJB 3 book starts with a tour of the EJB 3 landscape. It then moves quickly into core topics like building business logic with session and message-driven beans. You’ll find four full chapters on the JPA along with practical code samples, design patterns, performance tuning tips, and best practices for building and deploying scalable applications.
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.