You are previewing Beginning Java EE 7.
O'Reilly logo
Beginning Java EE 7

Book Description

Java Enterprise Edition (Java EE) continues to be one of the leading Java technologies and platforms. Beginning Java EE 7 is the first tutorial book on Java EE 7.

Step by step and easy to follow, this book describes many of the Java EE 7 specifications and reference implementations, and shows them in action using practical examples. This definitive book also uses the newest version of GlassFish to deploy and administer the code examples.

Written by an expert member of the Java EE specification request and review board in the Java Community Process (JCP), this book contains the best information possible, from an expert's perspective on enterprise Java technologies.

What you'll learn

  • Get started with the latest version of the Java EE Platform.

  • Explore and use the EJB and JPA APIs from entities to session beans to message driven beans, and more.

  • Discover web tier development APIs including JSF, Facelets and Expression Language.

  • Uncover SOAP web services, RESTful web services, and more available in this latest Java EE.

  • Create dynamic user interfaces for your enterprise and transactional Java applications.

Who this book is for

This book is for Java or Spring programmers with some experience and those new to Java EE platform. Architects will also find information about how to layer their Java EE applications.

Table of Contents

  1. Title Page
  2. Dedication
  3. Contents at a Glance
  4. Contents
  5. Foreword
  6. About the Author
  7. About the Technical Reviewer
  8. Acknowledgments
  9. Introduction
  10. CHAPTER 1: Java EE 7 at a Glance
    1. Understanding Java EE
    2. Java Standard Edition 7
    3. Java EE Specifications Overview
    4. The CD-BookStore Application
    5. Summary
  11. CHAPTER 2: Context and Dependency Injection
    1. Understanding Beans
    2. CDI Specifications Overview
    3. Writing a CDI Bean
    4. Interceptors
    5. Decorators
    6. Events
    7. Putting It All Together
    8. Summary
  12. CHAPTER 3: Bean Validation
    1. Understanding Constraints and Validation
    2. Bean Validation Specification Overview
    3. Writing Constraints
    4. Validating Constraints
    5. Putting It All Together
    6. Summary
  13. CHAPTER 4: Java Persistence API
    1. Understanding Entities
    2. JPA Specification Overview
    3. Putting It all Together
    4. Summary
  14. CHAPTER 5: Object-Relational Mapping
    1. Elementary Mapping
    2. Mapping with XML
    3. Embeddables
    4. Relationship Mapping
    5. Inheritance Mapping
    6. Summary
  15. CHAPTER 6: Managing Persistent Objects
    1. Entity Manager
    2. JPQL
    3. Queries
    4. Cache API
    5. Concurrency
    6. Entity Life Cycle
    7. Callbacks
    8. Listeners
    9. Summary
  16. CHAPTER 7: Enterprise JavaBeans
    1. Understanding Enterprise JavaBeans
    2. EJB Specification Overview
    3. Writing Enterprise Java Beans
    4. Invoking Enterprise Java Beans
    5. Summary
  17. CHAPTER 8: Callbacks, Timer Service, and Authorization
    1. Session Beans Life Cycle
    2. Timer Service
    3. Authorization
    4. Putting It All Together
    5. Summary
  18. CHAPTER 9: Transactions
    1. Understanding Transactions
    2. Transaction Specifications Overview
    3. Transaction Support in EJBs
    4. Transaction Support in Managed Beans
    5. Summary
  19. CHAPTER 10: JavaServer Faces
    1. Understanding Web Pages
    2. Understanding JSF
    3. JSF Specification Overview
    4. Writing JSF Pages and Components
    5. Summary
  20. CHAPTER 11: Processing and Navigation
    1. The MVC Pattern
    2. Writing Backing Beans
    3. Conversion and Validation
    4. Ajax
    5. Putting It All Together
    6. Summary
  21. CHAPTER 12: XML and JSon Processing
    1. Understanding XML
    2. XML Specifications Overview
    3. Java Architecture for XML Processing
    4. Java Architecture for XML Binding
    5. Understanding JSON
    6. JSON Specifications Overview
    7. JSON Processing
    8. Putting It All Together
    9. Summary
  22. CHAPTER 13: Messaging
    1. Understanding Messaging
    2. Messaging Specifications Overview
    3. Java Messaging Service API
    4. Writing Message Producers
    5. Writing Message Consumers
    6. Reliability Mechanisms
    7. Writing Message-Driven Beans
    8. Putting It All Together
    9. Summary
  23. CHAPTER 14: SOAP Web Services
    1. Understanding SOAP Web Services
    2. SOAP Web Services Specifications Overview
    3. Writing SOAP Web Services
    4. Invoking SOAP Web Services
    5. Putting It All Together
    6. Summary
  24. CHAPTER 15: RESTful Web Services
    1. Understanding RESTful Web Services
    2. RESTful Web Services Specifications Overview
    3. Writing RESTful Web Services
    4. Invoking RESTful Web Services
    5. Putting It All Together
    6. Summary
  25. APPENDIX A: Setting Up the Development Environment
    1. JDK 1.7
    2. Maven 3
    3. JUnit 4
    4. Derby 10.8
    5. GlassFish v4
  26. Index