Arun Gupta《Java EE 7 Essentials》

Arun Gupta《Java EE 7 Essentials》

作者:Arun Gupta

出版社:O'Reilly Media

出版年:2013-9-3

评分:0.0

ISBN:9781449370176

所属分类:网络科技

书刊介绍

内容简介

Get up to speed on the principal technologies in the Java Platform, Enterprise Edition 7, and learn how the latest version embraces HTML5, focuses on higher productivity, and provides functionality to meet enterprise demands. Written by Arun Gupta, a key member of the Java EE team, this book provides a chapter-by-chapter survey of several Java EE 7 specifications, including WebSockets, Batch Processing, RESTful Web Services, and Java Message Service.

You’ll also get self-paced instructions for building an end-to-end application with many of the technologies described in the book, which will help you understand the design patterns vital to Java EE development.

Understand the key components of the Java EE platform, with easy-to-understand explanations and extensive code samples

Examine all the new components that have been added to Java EE 7 platform, such as WebSockets, JSON, Batch, and Concurrency

Learn about RESTful Web Services, SOAP XML-based messaging protocol, and Java Message Service

Explore Enterprise JavaBeans, Contexts and Dependency Injection, and the Java Persistence API

Discover how different components were updated from Java EE 6 to Java EE 7

作品目录

Chapter 1 Java Platform, Enterprise Edition

Introduction

Deliverables

What’s New in Java EE 7

Chapter 2 Servlets

WebServlet

Servlet Filters

Event Listeners

Asynchronous Support

Nonblocking I/O

Web Fragments

Security

Resource Packaging

Error Mapping

Handling Multipart Requests

Upgrade Processing

Chapter 3 JavaServer Faces

Facelets

Resource Handling

Composite Components

Request Processing Life-Cycle Phases

Ajax

HTTP GET

Server and Client Extension Points

Validating Data

Navigation Rules

Faces Flow

Resource Library Contracts

Passthrough Attributes and HTML5-Friendly Markup

Component Tags

Chapter 4 RESTful Web Services

Resources

Binding HTTP Methods

Multiple Resource Representations

Binding a Request to a Resource

Entity Providers

Client API

Mapping Exceptions

Filters and Entity Interceptors

Validation of Resources

Chapter 5 SOAP-Based Web Services

Web Service Endpoints

Provider-Based Dynamic Endpoints

Endpoint-Based Endpoints

Web Service Client

Dispatch-Based Dynamic Client

Handlers

Chapter 6 JSON Processing

Streaming API

Object Model API

Chapter 7 WebSocket

Annotated Server Endpoint

Programmatic Server Endpoint

Annotated Client Endpoint

Programmatic Client Endpoint

JavaScript WebSocket Client

Encoders and Decoders

Integration with Java EE Security

Chapter 8 Enterprise JavaBeans

Stateful Session Beans

Stateless Session Beans

Singleton Session Beans

Life-Cycle Event Callbacks

Message-Driven Beans

Portable Global JNDI Names

Transactions

Asynchronous Invocation

Timers

Embeddable API

EJB Lite

Chapter 9 Contexts and Dependency Injection

Discovery of Beans

Injection Points

Qualifier and Alternative

Producer and Disposer

Interceptors

Decorators

Scopes and Contexts

Stereotypes

Events

Portable Extensions

Built-in Beans

Life-Cycle Callbacks

Chapter 10 Concurrency Utilities

Asynchronous Tasks

Schedule Tasks

Managed Threads

Dynamic Contextual Objects

Chapter 11 Bean Validation

Built-in Constraints

Defining a Custom Constraint

Validation Groups

Method and Constructor Constraint

Chapter 12 Java Transaction

User-Managed Transactions

Container-Managed Transactions

@TransactionScoped

Chapter 13 Java Persistence

Entities

Persistence Unit, Persistence Context, and Entity Manager

Schema Generation

Create, Read, Update, and Delete Entities

Entity Listeners

Stored Procedures

Validating the Entities

Transactions and Locking

Caching

Chapter 14 Java Message Service

Sending a Message

Receiving a Message Synchronously

Receiving a Message Asynchronously

Quality of Service

Temporary Destinations

Chapter 15 Batch Processing

Chunk-Oriented Processing

Batchlet Processing

Listeners

Job Sequence

Partitioning the Job

Chapter 16 Build an End-to-End Application

Introduction

Problem Statement

Walkthrough of a Sample Application

Show Booking (JavaServer Faces)

Chat Room (Java API for WebSocket)

View and Delete Movies (Java API for RESTful Web Services)

Add Movie (Java API for JSON Processing)

Ticket Sales (Batch Applications for the Java Platform)

Movie Points (Java Message Service 2)

Conclusion

Troubleshooting

Completed Solution

Appendix Further Reading

Web Technology Specifications

Enterprise Technology Specifications

Web Service Technologies

Management and Security Technologies

相关推荐

微信二维码