Paperback. Pub Date :2011-09-30 Pages: 423 Language: English Publisher: APRESS Develop powerful. standards-based. back-end business logic with Beginning EJB 3. Java EE 7 Edition.Led by an author team with 20 years of combined Enterprise JavaBeans experience. youll learn how to use the new EJB 3.2 APIs.Youll gain the knowledge and skills youll need to create the complex enterprise applications that run todays transactions and more.Targeted at Java and Java EE developers. with and without prior EJB experience. Beginning EJB 3 is packed with practical insights. strategy tips. and code examples.As each chapter unfolds. youll not only explore a new area of ??the spec; youll also see how you can apply it to your own applications through specific examples. Beginning EJB 3 will serve not only as a reference. but it will also function as a how-to guide and repository of practical exa...
Dear Reader, When we conceived the original edition of this book in 2006, the lightweight EJB 3 API was still in its early stages, yet it was clear to us that the EJB specification designers had at last achieved the right blend of power and usability. Coming from the EJB 2.x world, it was like a breath of fresh air, and reminded us of how it felt to discover Java technology after years of programming C and C++. Th e EJB component, redefined as an ordinary Java class whose metadata could be declared through Java annotations, and enhanced by the introduction of generics, container injection, and interceptors, became the basis for a much more nimble development model: one that gained elegance through simplicity. Enter the new Java Persistence API (JPA), where entities, too, were recast as lightweight Java classes and O/R mapping metadata could be specified through spec-defined annotations, and we suddenly had a comprehensive enterprise component model comprising the latest technologies, all rolled into a worldwide standard. So you can see what got our buzz going. Fast forward to now, and the release of the EJB 3.2 and JPA 2.1 specs. Spanning over a thousand pages combined, these specifications have matured to address a number of new areas and improve upon their ease of use. Once again we saw an opportunity to translate this latest material into an approachable format that reads well and makes liberal use of examples that you can build, execute, and further explore on your own machine. In this second edition, accompanying the release of Java EE 7, we introduce the EJB 3.2 and JPA 2.1 APIs along with key features in the CDI and JAX-RS specifications through a series of digestible chapters, allowing you to become comfortable with these technologies one topic at a time. Within each chapter we provide executable source code examples that demonstrate how each feature works, and how the pieces fi t together. So you don't have to swallow the whole enchilada in one humongous gulp. In the spirit of our Apress Wines Online application, which we use for numerous examples throughout the book, we want you to truly savor and appreciate the richness of the Java EE 7 component ecosystem. For each technology we provide straightforward examples, but we also strive to explain when and where to use its features and what their strengths and weakness are, and offer insights into best usage practices. Following these topical explorations, we explain how to integrate EJB and related components into a comprehensive Java EE 7 application, and then turn the spotlight on transaction management, performance analysis, deployment, testing in an Embeddable EJB Container, and how to build solid EJB clients.Our job is to transform you from EJB novice to expert, and we want you to enjoy the ride! Jonathan Wetherbee, Chirag Rathod, Raghu Kodali, and Peter Zadrozny
Who should read this book? This book is targeted at enterprise software developers who are experienced with Java, have built single tier or multitier applications using earlier versions of EJB or related technologies, and are looking to build enterprise software based on the latest cross-platform industry standards. As authors of an introductory-level text, we have two main goals:
- Our first goal is to get you comfortable working with the many essential elements of EJB and several closely related technologies. We will walk you through the steps required to design, build, deploy, execute, and test comprehensive enterprise applications in a Java EE environment. We expect you to be able to come away with a sense of ease with the nuts and bolts required to build and assemble a variety of applications based on EJB components.
- Our second goal is to provide you with a broad perspective on the service and persistence tiers of Java EE as a whole and, in particular, on the full range of features offered by EJB. We intend for you to leave this book holding a breadth-first foundation that will serve as a launchpad from which to explore specific areas of the EJB and related specifications in greater depth.
To this end, this book strives to provide an approachable on-ramp to EJB that gets you comfortable with building services and applications that exercise the full breadth of EJB. We deliberately avoid diving deep into many areas of the spec, so that you can get familiar with the overall environment without getting distracted by the minutia of fine-grained options. We believe that this breadth-first foundation--based on a solid understanding of the broad range of features offered by EJB--will put you in the best position to then explore in greater depth, using the specification and other advanced texts as your reference guides, specific areas of the EJB API that are required for your own software development projects.