Java EE 7 First Look

Java EE 7 First Look
eBook: $23.99
Formats: PDF, PacktLib, ePub and Mobi formats
save 15%!
Print + free eBook + free PacktLib access to the book: $63.98    Print cover: $39.99
save 6%!
Free Shipping!
UK, US, Europe and selected countries in Asia.
Also available on:
Table of Contents
Sample Chapters
  • Explore changes brought in by the Java EE 7 platform
  • Master the new specifications that have been added in Java EE to develop applications without any hassle
  • Quick guide on the new features introduced in Java EE7

Book Details

Language : English
Paperback : 188 pages [ 235mm x 191mm ]
Release Date : November 2013
ISBN : 1849699232
ISBN 13 : 9781849699235
Author(s) : NDJOBO Armel Fabrice
Topics and Technologies : All Books, Application Development, Enterprise Products and Platforms, Other

Table of Contents

Chapter 1: What's New in Java EE 7
Chapter 2: New Specifications
Chapter 3: The Presentation Layer
Chapter 4: The Java Persistence API
Chapter 5: The Business Layer
Chapter 6: Communicating with External Systems
Chapter 7: Annotations and CDI
Chapter 8: Validators and Interceptors
Chapter 9: Security
    • Chapter 2: New Specifications
      • Concurrency Utilities for Java EE 1.0
        • Why concurrency?
          • Benefits of concurrency
          • Risks of concurrency
        • Concurrency and Java EE
        • Java EE Concurrency API
      • Batch Applications for Java Platform 1.0
        • What is batch processing?
        • Why a dedicated API for batch processing?
        • Understanding the Batch API
          • JobRepository
          • Job
          • Step
          • Chunk
          • Batchlet
        • The batch.xml configuration file
        • JobOperator
      • Java API for JSON Processing 1.0
        • What is JSON?
          • Object
          • Array
          • Why JSON?
          • Java API for JSON processing
      • Java API for WebSocket 1.0
        • What is WebSocket?
        • Why WebSocket?
        • The WebSocket API
          • Server endpoint
          • Client endpoint
      • Summary
      • Chapter 3: The Presentation Layer
        • Servlet 3.1
          • What is a Servlet?
            • A login page with a Servlet
            • Latest improvements of Servlet 3.1 in action
            • Non blocking I/O API
            • Protocol upgrade processing
        • Expression Language 3.0
          • What is Expression Language?
          • The latest improvements of EL 3.0 in action
            • API for standalone environments
            • Lambda expressions
            • Collection object support
        • JavaServer Faces 2.2
          • What is JavaServer Faces?
          • An identification page with JSF
          • The latest improvements of JSF 2.2 in action
            • HTML5-friendly markup
            • Resource Library Contracts
            • Faces Flow
            • Stateless views
        • Summary
        • Chapter 4: The Java Persistence API
          • Java Persistence API 2.1
            • JPA (Java Persistence API)
            • JPA in action
            • The latest improvements of JPA 2.1 in action
              • Persistence context synchronization
              • Entity
              • New annotations
              • Entity graphs
              • JPQL
              • The Criteria API
              • DDL generation
          • Java Transaction API 1.2
            • The Java Transaction API
            • JTA in action
            • Innovations introduced by JTA 1.2
          • Summary
          • Chapter 5: The Business Layer
            • Enterprise JavaBeans 3.2
              • Pruning some features
              • The latest improvements in EJB 3.2
                • Session bean enhancement
                • EJB Lite improvements
                • Changes made to the TimerService API
                • Harmonizing with JMS's novelties
                • Other improvements
            • Putting it all together
              • Presenting the project
              • Use Case Diagram (UCD)
              • Class diagram
              • Component diagram
            • Summary
            • Chapter 6: Communicating with External Systems
              • JavaMail
                • Sending e-mails in Java
                  • Sending an e-mail via the SMTP protocol
                • The latest improvements in action
                  • The added annotations
                  • The added methods
                  • The changing of some access modifiers
              • Java EE Connector Architecture (JCA)
                • What is JCA?
                • JCA in action
                • Latest improvements
              • Java Message Service (JMS)
                • When to use JMS
                • The latest improvements in action
                  • New features
              • Java API for RESTful Web Services
                • When to use Web Services
                • JAX-RS in action
                • The latest improvements in action
                  • The Client API
                  • Asynchronous processing
                  • Filters and entity interceptors
              • Summary
              • Chapter 7: Annotations and CDI
                • Common annotations for the Java platform
                  • The goal of this specification
                  • Building your own annotation
                  • Latest improvements in action
                  • The new annotation
                • Contexts and Dependency Injection
                  • What is CDI ?
                    • Example 1 – instantiation of a POJO
                    • Example 2 – accessing an EJB from a JSF page
                    • Example 3 – setting a bean with a specific scope for simple operations
                    • Example 4 – use of objects usually created by a factory
                  • Latest improvements in action
                    • Avoiding CDI processing on a bean
                    • Accessing the non contexual instance of a bean
                    • Accessing the current CDI container
                    • Destroying CDI bean instances explicitly
                • Summary
                • Chapter 8: Validators and Interceptors
                  • Bean Validation
                    • Validating your data
                    • Building a custom constraint
                    • Creating a constraint annotation
                    • Implementing a validator
                    • Latest improvements in action
                      • Openness
                      • Support for dependency injection and CDI integration
                      • Support for method and constructor validation
                      • Support for group conversion
                      • Support message interpolation using expression language
                  • Interceptors
                    • Intercepting some processes
                      • Defining interceptors in the target class
                      • Defining interceptors in an interceptor class
                    • Latest improvements in action
                      • Intercept constructor invocation
                      • Associating an interceptor with a class using interceptor binding
                      • Defining the execution order of interceptors
                  • Summary
                  • Chapter 9: Security
                    • JASPIC 1.1
                      • Secure access to forms
                        • Implementing an authentication module
                    • The latest improvements in action
                      • Integrating the authenticate, login, and logout methods called
                      • Standardizing access to the application context identifier
                      • Support for forward and include mechanisms
                    • Summary

                    NDJOBO Armel Fabrice

                    NDJOBO Armel Fabrice is a Design Computer Engineer and graduate from the National Advanced school of Engineering Cameroon, and Oracle Certified Expert, Java EE 6 Java Persistence API Developer. In the past, he has worked with Java EE to develop several systems among which are a helpline system and a commercial management application. He currently works on several systems based on EJB, Spring and ICEFaces solutions. In addition, he has made a technical review of the books Pro Spring Integration published by Apress and Beginning EJB 3, Java EE published by Apress. He is also a copywriter in (his home page is:

                    Code Downloads

                    Download the code and support files for this book.

                    Submit Errata

                    Please let us know if you have found any errors not listed on this list by completing our errata submission form. Our editors will check them and add them to this list. Thank you.

                    Sample chapters

                    You can view our sample chapters and prefaces of this title on PacktLib or download sample chapters in PDF format.

                    Frequently bought together

                    Java EE 7 First Look +    HTML5 Game Development HOTSHOT =
                    50% Off
                    the second eBook
                    Price for both: $34.95

                    Buy both these recommended eBooks together and get 50% off the cheapest eBook.

                    What you will learn from this book

                    • Put together the Java EE 7 APIs in order to realize applications
                    • Solve integration problems with heterogeneous systems
                    • Secure Java EE 7 applications
                    • Explore the usefulness of some major Java EE specifications
                    • Learn how to implement large processes in the Java EE 7 environment
                    • Discover a good alternative to XML for data exchange

                    In Detail

                    For several years, the development of robust, scalable, and secured applications was a headache for software companies. They had to use proprietary solutions with non-standard methods. With Java EE, many of these solutions have been standardized, simplified, adapted to the needs of the developer, and made freely available to the community. Thus, it is now possible to develop truly robust, secure, and scalable applications at a lower cost using tools such as: Eclipse, NetBeans, and GlassFish.

                    Java EE 7 First Look is a practical guide which, through the creation of an online pre-registration website, will introduce you to the novelties of Java EE 7 and give you ideas for utilizing them.

                    Giving you an insight on new features introduced in Java EE 7, this book begins with the objectives of Java EE 7 and then covers the new specifications added in Java EE 7. Next, you will move on to the improvements made in APIs and EJBs and how to work with them. You will also learn how to ensure that the quality of data is maintained that has been manipulated by your application and gives you the opportunity to put a small part of AOP (Aspect Oriented Programming) in action.

                    Finally, the book will give you some ideas to realize n-tier applications using the Java EE platform and will also provide some guidance for the integration of your Java EE application to heterogeneous systems with which your application will interact.

                    After reading Java EE 7 First Look, you'll have a good idea about the changes brought in by Java EE 7, as well as how to make the best use of these to build a large-scale application.


                    An easy-to-follow guide to reveal the new features of Java EE 7 and how to efficiently utilize them

                    Who this book is for

                    Given the main objectives pursued, this book targets three groups of people with a knowledge of the Java language. They are:

                    • Beginners in the Java EE platform who would like to have an idea about the main specifications of Java EE 7
                    • Developers who have experimented with previous versions of Java EE and who would like to explore the new features of Java EE 7
                    • Building architects who want to learn how to put together the various Java EE 7 specifications for building robust and secure enterprise applications

                    Code Download and Errata
                    Packt Anytime, Anywhere
                    Register Books
                    Print Upgrades
                    eBook Downloads
                    Video Support
                    Contact Us
                    Awards Voting Nominations Previous Winners
                    Judges Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software
                    Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software