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
《世纪大讲堂:科技卷》主要内容:著名讲坛,权威学者,民众话题,框架严密,百家争鸣!这里是自由的、思想的论坛;这里是思想的盛
《Web2.0高级编程》首先通过一个Web2.0应用演示了服务器和浏览器之间的交互过程,让读者对《Web2.0高级编程》中介绍的技术在Web2
美国著名平面设计师JohnMcWade为你全面地讲解了平面设计的基本知识,分享了实用的设计方法和技巧,并且详细解读了许多完整的设计
《西北断简》内容简介:本书是朱幼棣先生在20世纪末的数年里完成的旅行文集。他在各地任职、考察期间,从西北到晋陕,用自己的双脚
当前正在全球兴起的数字网络,并不仅仅是一种传输电子函件、万维网网页和数字电视的通信系统,而是一种全新的城市基础设施,一种
地理信息系统实习教程 内容简介 本教程由一系列的练习组成,可使学习者循序渐进地掌握地理信息系统(GIS)的基本功能,特别是通用的空间分析功能。内容包括:空间、属...
WPF是微软新一代开发技术,涵盖了桌面应用程序开发、网络应用程序开发和移动应用程序开发,是微软开发技术未来十年的主要方向。本
《李尔王》内容简介:为纪念莎士比亚逝世四百周年,特以我社方平先生主编、主译的华语世界首部诗体版《莎士比亚全集》为基础,综合
《大话西方艺术史》内容简介:本书用浅白风趣的语言和逻辑清晰的脉络,梳理了30000多年西方艺术史的精髓,帮助你迅速构建完整的艺术
《元宇宙基石:Web3.0与分布式存储》内容简介:本书Web3.0深刻地变革了数据存储的方式,使个人不再依赖数据存储费高昂的企业来存储
Web安全实践 内容简介 本书提供了有效的、经过验证的解决方案,以修补端到端网络安全架构中的Windows Web服务器和浏览器的常见脆弱之处。本书分为5个部分...
《仰顾山房文稿》内容简介:本书是凤凰枝文丛之一种,作者俞国林是中华书局编辑,先后策划《顾颉刚全集》等具有影响力的图书多种,
《写给未来的自己(第2季)》内容简介:本书收录了2018届“北大培文杯”全国青少年英语创意写作大赛的优秀作品。“北大培文杯”全国
《Ruby设计模式》是一本关于设计模式方面的重点书籍。《Ruby设计模式》以通俗易懂的方式介绍了Ruby设计模式,主要包括Ruby概述、
《Android 7应用程序开发教程》内容简介:Android系统是目前最为流行的智能手机操作系统之一,面向Android系统的应用开发是目前的技
《闪魂FLASH8网站建设实录》旨在提供以Flash(Flash8.0为创作工具)为技术核心的整套互动网站的开发思路,其中包括了网站策划、平面
《锦绣河山》内容简介:此书主要收录徐铸成先生1984年至1985年来在海内外报刊所刊登的游记和通讯。这一年半来,作者风尘仆仆地跑遍
《中国社会建设现代化之路》内容简介:本书中国社会建设现代化,是一个崭新的重大理论与实践课题。作者积多年社会建设理论与实践经
《认知心理学》内容简介:中国心理学家对认知心理学的兴趣,主要表现在两个方面。在理论方面,认知心理学有助于揭示人的认识过程
《分布式系统概念与设计》旨在全面介绍因特网及其他常用分布式系统的原理、体系结构、算法和设计,内容涵盖分布式系统的相关概念