Introducing Java EE 7: A Look at What's New

Book description

Introducing Java EE 7: A Look at What's New guides you through the new features and enhancements in each of the technologies comprising the Java EE platform. Readers of this book will not have to wade through introductory material or information covering features that have been part of the EE platform for years. Instead, developers can pick this book up and read it to brush up on those features that have changed or have been added for the EE 7 release. This handy reference helps you move forward from Java EE 6 to the new EE 7 platform quickly and easily.

Java is a mature programming language that has been refined over the years into a productive language widely used in enterprise application development. Although the language contains frameworks and methodologies that have been used for years, it is important to make use of the most current features available in the language in order to achieve the best results. Introducing Java EE 7: A Look at What's New covers the solutions using the most current Java Enterprise technologies, including EJB 3.2, JSF 2.2, and JAX-RS 2.0. Build a streamlined and reliable application that uses the latest in Java technologies, and develop it much faster than you did with the older technologies. Rejuvenate your Java expertise to use the freshest capabilities, or perhaps learn Java Enterprise development for the first time and discover one of the most widely used and most powerful technologies available for application development today. Get up and running quickly with the new features of EE 7!

  • Designed to get you up and running quickly with the newly released Java EE 7

  • Includes real world examples of how to use new and updated features.

  • Demonstrates the latest productivity enhancements in the platform

  • What you'll learn

  • Develop using the latest in Java EE 7 technologies

  • Deploy the most current features in Java Servlets

  • Make use of HTML5 in your Java Enterprise applications

  • Create enterprise database applications using the latest features in EJB

  • Improve application code through Context Dependency Injection (CDI)

  • Exploit the power of RESTful web services

  • Who this book is for

    Introducing Java EE 7: A Look at What's New is intended for developers already familiar with the basic concepts of Java Enterprise Edition development. The book jumps right into covering new features in Java EE 7, and gets down into code from the very beginning. The book is organized to be a handy reference for those who need information quickly on a particular topic while transitioning from Java EE 6 to Java EE 7, but it can also be read front to back.

    Table of contents

    1. Title Page
    2. Dedication
    3. Contents at a Glance
    4. Contents
    5. About the Author
    6. About the Technical Reviewer
    7. Acknowledgments
    8. Introduction
    9. CHAPTER 1: New Servlet Features
      1. Non-Blocking I/O
      2. Upgrade Protocol
      3. Enhanced FileUpload
      4. Filter Life Cycle
      5. Security Enhancements
      6. Summary
    10. CHAPTER 2: JavaServer Faces and Facelets
      1. View Actions
      2. Faces Flow
      3. Ajax Queues
      4. File Upload
      5. Stateless Views
      6. HTML5 and JSF
      7. Facelets Enhancements
      8. Resource Library Contracts
      9. Security Enhancements
      10. Summary
    11. CHAPTER 3: Expression Language (EL)
      1. Lambda Expressions
      2. Collections Enhancements
      3. New Operators
      4. Static Field and Methods
      5. Stand-Alone API
      6. Incompatibilities with Previous Releases
      7. Summary
    12. CHAPTER 4: Object Relational Mapping and JPA
      1. Support for Joins with ON Conditions
      2. Invocation of Database Functions
      3. Bulk Updates and Deletions
      4. Downcasting in the FROM and WHERE clauses
      5. Schema Generation
      6. Support for Database Stored Procedures
      7. Synchronization of Persistence Contexts
      8. Entity Listeners using CDI
      9. Summary
    13. CHAPTER 5: Business Logic Using EJB
      1. General Updates and Improvements
      2. New Features in EJB Lite
      3. Optional Features
      4. Summary
    14. CHAPTER 6: Validating Data
      1. An Overview of Bean Validation with Java EE
      2. Constraint Validation Annotations
      3. Contexts and Dependency Injection Integration
      4. Method Validation
      5. Group Conversion
      6. Message Interpolation via EL
      7. A Truly Open API
      8. Summary
    15. CHAPTER 7: Contexts and Dependency Injection
      1. Brief Overview of CDI
      2. Dependency Injection
      3. Marking Classes as Ignored by CDI
      4. Producers
      5. Programmatic Lookup
      6. Container Life-Cycle Events
      7. Priorities
      8. Deprecations
      9. Summary
    16. CHAPTER 8: Building RESTful Web Services
      1. Overview of JAX-RS
      2. Client API
      3. Filters and Interceptors
      4. Asynchronous Processing
      5. Resource Context
      6. Summary
    17. CHAPTER 9: WebSockets and JSON-P
      1. WebSockets
      2. JavaScript Object Notation—JSON
      3. Summary
    18. CHAPTER 10: Java Message Service
      1. Brief Overview
      2. API Enhancements
      3. New Messaging Features
      4. Summary
    19. CHAPTER 11: Concurrency and Batch Applications
      1. Concurrency
      2. Scheduled Tasks
      3. Batch Applications for the Java Platform
      4. Summary
    20. CHAPTER 12: NetBeans and Java EE 7
      1. Configuring Application Servers
      2. Developing Java Enterprise Applications
      3. JSF
      4. JPA
      5. JPQL
      6. JMS
      7. Web Services
      8. HTML5
      9. Summary
    21. Index

    Product information

    • Title: Introducing Java EE 7: A Look at What's New
    • Author(s): Josh Juneau
    • Release date: June 2013
    • Publisher(s): Apress
    • ISBN: 9781430258483