This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
Hi Karthik, Bitter EJB is a great book and has tons of really good information in it. The focus of that book is on EJB and specifically the beans (Entity, Session, Message Driven). There is information in the book about other areas of J2EE but not as much as in J2EE AntiPatterns. That said I own Bitter EJB and think that the section on performance testing by Mike Clark is worth the purchase price by its self. If you alreay own Bitter EJB why buy J2EE AntiPatterns?
Most of the J2EE space is covered and discussed in concert (i.e. the JSP discussions touch on how you might interface to the back end) in J2EE AntiPatterns. You get a full archtecture picture of the issues (front to back and how decissions in the front end code can negitively effect the back end etc.). The Bitter EJB book has some of the same discussions but all from the 'back end'.
The solutions are structured as reafactorings instead of pure prose. So for example in working through having too much code in your JSP's (AntiPattern: Too Much Code pg 165) there are three refactorings offered to help you fix your JSP's. The Refactorings follow Fowler's model so they will be familiar to thoes familiar with Fowler's book. Each refactoring offers a list of steps to complete the fix as well as example code in the before and after states.