Contents
Chapter 1: Java EE 7 at a Glance
Annotations and Deployment Descriptors
Java EE Specifications Overview
Chapter 2: Context and Dependency Injection
Loose Coupling and Strong Typing
A Brief History of CDI Specifications
Chaining and Excluding Interceptors
Prioritizing Interceptors Binding
Writing the Book and BookService Classes
Writing the NumberGenerator Classes
Compiling and Executing with Maven
Writing the BookServiceIT Class
Enabling Alternatives and Interceptors in beans.xml for Integration Testing
Understanding Constraints and Validation
Bean Validation Specification Overview
A Brief History of Bean Validation
What’s New in Bean Validation 1.1?
Writing the @ZipCode Constraint
Writing the CustomerIT and AddressIT Integration Tests
Compiling and Testing with Maven
Chapter 4: Java Persistence API
Entity Life Cycle and Callbacks
Integration with Bean Validation
Writing the BookIT Integration Test
Writing an SQL Script to Load Data
Compiling and Testing with Maven
Running the Main Class with Derby
Chapter 5: Object-Relational Mapping
Access Type of an Embeddable Class
Relationships in Relational Databases
Type of Classes in the Inheritance Hierarchy
Chapter 6: Managing Persistent Objects
Criteria API (or Object-Oriented Queries)
Chapter 7: Enterprise JavaBeans
Understanding Enterprise JavaBeans
Process and Embedded Container
Services Given by the Container
A Brief History of the EJB Specification
Invoking Enterprise Java Beans
Chapter 8: Callbacks, Timer Service, and Authorization
Writing the BookEJB Stateless Session Bean
Writing the CDI DatabaseProducer
Persistence Unit for the BookEJB
Writing the DatabasePopulator and Defining the Data Source
Writing the BookEJBIT Integration Test
Compiling, Testing, and Packaging with Maven
Distributed Transactions and XA
Transaction Specifications Overview
Container-Managed Transactions
Transaction Support in Managed Beans
A Brief History of Web Interfaces
Writing JSF Pages and Components
Chapter 11: Processing and Navigation
Handling Exceptions and Messages
Bringing JSF and EJBs Together
Integration with Bean Validation
Writing the BookController Backing Bean
Writing the layout.xhtml Template
Writing the newBook.xhtml Page
Writing the viewBook.xhtml Page
Compiling and Packaging with Maven
Chapter 12: XML and JSon Processing
A Brief History of XML Specifications
Java Architecture for XML Processing
Java Architecture for XML Binding
Writing the CreditCardXMLTest Unit Test
Writing the CreditCardJSonTest Unit Test
Messaging Specifications Overview
Producing a Message outside a Container
Producing a Message inside a Container
Producing a Message inside a Container with CDI
Specifying Message Persistence
Compiling and Packaging with Maven
Creating the Administered Objects
Deploying the MDB on GlassFish
Understanding SOAP Web Services
SOAP Web Services Specifications Overview
A Brief History of SOAP Web Services Specifications
SOAP Web Services Related Specifications
What’s New in SOAP Web Services Specifications?
Writing the CardValidator SOAP Web Service
Writing the CardValidatorTest Unit Test
Writing the CardValidatorIT Integration Test
Compiling, Testing and Packaging with Maven
Writing the WebServiceConsumer Class
Generating Consumer’s Artifacts and Packaging with Maven
Running the WebServiceConsumer Class
Chapter 15: RESTful Web Services
Understanding RESTful Web Services
RESTful Web Services Specifications Overview
Java API for RESTful Web Services
Anatomy of a RESTful Web Service
CRUD Operations on a RESTful Web Service
URI Definition and Binding URIs
Consuming and Producing Content Types
Compiling and Packaging with Maven
Writing the BookRestServiceIT Integration Test
3.21.244.217