Beginning EJB 3: Java EE 7 Edition

Front Cover

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, you'll learn how to use the new EJB 3.2 APIs. You'll gain the knowledge and skills you’ll need to create the complex enterprise applications that run today's 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, you'll not only explore a new area of the spec; you'll 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 examples to which you can refer as you build your own applications. It will help you harness the power of EJBs and take your Java EE 7 development to the next level.

What you’ll learn How to employ session beans, message-driven beans, and entity beans

How to use the updated EJB 3 persistence and object-relational mappings

How to choose which EJB option is right for your application

How to enrich your application’s behavior with CDI services

How to test the EJB container inside and out

How to migrate from older EJB to the newest EJB APIs Who this book is for

This book is for those Java and Java EE developers with and without prior EJB experience.

Table of Contents Introduction to the EJB 3 Architecture Session Beans Entities and the Java Persistence API Advanced Persistence Features Message-Driven Beans EJB and Web Services Integrating Session Beans, Entities, Message-Driven Beans, and Web Services Transaction Management EJB Performance and Testing Context and Dependency Injection (CDI) Packaging and Deployment EJB Client Applications EJB Runtime Environments

 

Contents

Chapter 1 Introduction to the EJB Architecture
1
Chapter 2 EJB Session Beans
25
Chapter 3 Entities and the Java Persistence API
61
Chapter 4 Advanced Persistence Features
103
Chapter 5 EJB MessageDriven Beans
151
Chapter 6 EJB and Web Services
177
Chapter 7 Integrating Session Beans Entities MessageDriven Beans and Web Services
205
Chapter 8 Transaction Support in EJB
239
Chapter 11 EJB Packaging and Deployment
329
Chapter 12 EJB Client Applications
347
Chapter 13 Testing in an Embeddable EJB Container
395
Index
415
Contents
vii
About the Authors
xx
About the Technical Reviewer
xxiii
Preface
xxiv

Chapter 9 EJB 3 Performance and Testing
281
Chapter 10 Contexts and Dependency Injection
305
Acknowledgments
xxvi
Copyright

Other editions - View all

Common terms and phrases

About the author (2013)

Jonathan Wetherbee is a consulting engineer and tech lead for EJB development tools on Oracle's JDeveloper IDE. He has over 20 years of experience in development at Oracle, working on a variety of O/R mapping tools and overseeing Oracle's core EJB toolset since EJB 1.1. Most recently, Jon has been responsible for the design and development of EJB and JPA data binding solutions for ADF, Oracle's application development framework. Prior to joining the JDeveloper project, Jon was a product manager for Oracle's CASE (computer-aided software engineering) tools and worked on early object-relational frameworks. He received a patent in 1999 for his work on integrating relational databases in an object-oriented environment. Jon is coauthor of the first edition of this book, "Beginning EJB 3 Application Development: From Novice to Professional," and has published articles online in Java Developer's Journal and Oracle Technical Network. He enjoys speaking, and has given talks at conferences and developer groups, including Oracle's iDevelop (Bangalore, Taipei), The Server Side Java Symposium (Barcelona), and various Java user groups. Jon holds a Bachelor of Science degree in cognitive science from Brown University.

Bibliographic information