35 of 35 people found the following review helpful:
4.0 out of 5 stars
Beginning Java(TM) EE 6 Platform with GlassFish(TM) 3, 2nd Ed., September 26, 2010
This review is from: Beginning Java EE 6 with GlassFish 3 (Expert's Voice in Java Technology) (Paperback)
As a long time server side Java developer who has generally steered clear of the J(2)EE standard stack of EJB, JPA and JSF, in favor of Spring, Hibernate and Struts, I nevertheless wanted to take a look at the promise of the emerging Java EE 6 improvements. My goal was to evaluate whether EJB in conjunction with JPA persistence can be developed in a style that I have grown accustomed using Spring and Hibernate. Is it possible to maximize testing and debugging activities outside the EE container with version 6?
The answer to that question for me is mixed, but Beginning Java EE 6 with GlassFish came through in helping me make the evaluation. I didn't need a soup to nuts definitive guide, but a book with some breadth to be able to evaluate the platform without having to become an expert in the process. It provides enough material in each major subject area to get a simple but non-trivial example program running. In fact the chapters on JPA are fairly comprehensive and could be a nearly complete reference for building out a small to medium admin interface for a database.
It is definitely a "Beginning" book for seasoned EJB and JSF developers, as they will likely not find enough new material to warrant purchasing the book. I would not say this book is appropriate for programming beginners in general, or even experienced programmers migrating to server side Java for the first time. (Perhaps 'Introducing' in place of 'Beginning' would have conveyed this better). It can be daunting to simply set up the requisite software packages before you can create your first entity class or session bean. Author Antonio Goncalves does an excellent job outlining the necessary setup steps, and doesn't leave out important aspects, such as assuming the reader already has the JDK installed. You will likely have to consult other resources to complete the set up of your environment, but that's to be expected in today's multi-layered and polyglot programming paradigms.
In the past I have often shied away from Novice to Professional Apress titles, because they often are padded with screen shots and unabridged XML configuration. Goncalves sprinkles in a few screens showing the set up of glassfish, and throughout the book, the example code snippets are concise but complete enough to illustrate the narrative.
A very key piece of technology used throughout the book that is not specified by JEE 6, nor is part of GlassFish, is the use of Maven. As an experienced Maven user, this was a significant advantage for me. I'm not sure how much of a distraction this will be for the many developers with no Maven experience, who want to get up to speed quickly. Using Maven meant the book does not have to devote any space on setting up an IDE, but the reader will be on his own to figure out how to import the mavenized sample code into an IDE.
As for the sample code, the source code is available for download on Apress. It is solid code until chapter 13, 14 and 15. I encountered compilation errors for these chapters' samples, which leaves the impression that not enough time and effort was expended to do justice to the topics of JMS, Web Services and REST.
If I have one important critique of the book (and perhaps it's really a critique of EJB/GlassFish) is that the JUnit tests utilizing embedded GlassFish do not work. This problem lead me to the mixed review I alluded to in evaluating EJB 3.1. My current perception (which may or may not accurately reflect reality) is that testability of EJB is still not up to the level I expect, given my experiences using Spring over the last five years. I doubt this situation is the fault of the author of this book, but not enough discussion was devoted to describing the complexities of running GlassFish in embedded mode, even (or especially) for an introductory level book.
Overall, Beginning Java EE 6 with GlassFish accomplishes its mission, and I can recommend the book for a senior developer or architect doing technology evaluations or other developers needing to get up and running quickly.
Help other customers find the most helpful reviews
Was this review helpful to you? Yes
No
4 of 4 people found the following review helpful:
3.0 out of 5 stars
Nice to read but ..., April 5, 2011
This review is from: Beginning Java EE 6 with GlassFish 3 (Expert's Voice in Java Technology) (Paperback)
The book is nice to read but don't try to follow the examples! They just don't work and you will end up spending a lot of time debugging them (maybe, that is the hidden underlying concept of the book). I made it to chapter six and then gave up ...
Help other customers find the most helpful reviews
Was this review helpful to you? Yes
No
1 of 1 people found the following review helpful:
4.0 out of 5 stars
Good intro for Java EE 6, July 8, 2011
This review is from: Beginning Java EE 6 with GlassFish 3 (Expert's Voice in Java Technology) (Paperback)
I used to develop web applications 7+ years ago with servlets and JSP, but a great deal of improvements have made the technologies much easier to work with so I wanted to take another crack at it. This book was easy to read (very difficult to put it down until I finished it) and covered many of the Java EE 6 technologies I want to learn. The JPA coverage for ORM was quite comprehensive. However, I was surprised the glue of Java EE 6 (CDI) is missing appropriate coverage in the book. I've been using it as a starter book that gets me familiar with the technologies, and then I've been using other books that dig deeper in each of the technologies to help me understand it better.
I've heard the source code doesn't work and it doesn't use CDI, so I've steered away from trying out the examples. If CDI had been covered and the examples worked, I'd have easily given this five stars.
Help other customers find the most helpful reviews
Was this review helpful to you? Yes
No