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
《零基础学Oracle》内容简介:Oracle数据库是目前世界上使用最为广泛的数据库管理系统。本书不仅是一本Oracle的入门教材,也是初学
如果你可以编写出合格的代码,但是想更进一步、创作出组织良好而且易于理解的代码,并希望成为一名真正的编程专家或提高现有的职
本书是谭浩强老师经典的《C程序设计》(以下简称原书)一书的最佳伴侣,是对原书有益且神奇的补充。本书对原书中没有讲透彻的没有
《团购之王:Groupon的创业疯魔史》内容简介:Groupon是全球最大的团购网站,也是全球被“山寨”次数最多的公司。其据点遍布全世界
《视觉艺术原理(第8版)》,精心融汇了以前各版的优势,强调了《视觉艺术原理(第8版)》在全球视觉艺术领域中的引领地位。并率先把
PythonWebProgrammingisapracticalintroductiontobuildingnetworkedsystemsintheobjec...
《数据主权与安全:跨境电子取证》内容简介:网络时代的到来导致以领土范围为标准的管辖界限逐渐模糊,近年来各国在刑事侦查中收集
《故事工坊》内容简介:本书通过工坊式写作课堂,对“讲故事”的技巧、方法、练习进行讲解,涉及虚构与非虚构类型的故事创作。写作
《人生谁能无补丁》内容简介:作为著名散文家和学者,梁衡先生曾说,人生不如意事常八九,有低谷、叹息、哭泣与遗憾,但这就是人生
《胡登跳研究文集》内容简介:该书收集整理了胡登跳先生的主要音乐研究文章以及2015全国民族室内乐论坛暨胡登跳学术思想研讨会的研
《中国有了一条船(平装)》内容简介:本书是一部专门写给中国当代少年儿童的歌颂“红船精神”、展望中国梦美好未来的长篇励志诗歌
该合订本内容包括:合订增值版人物&报道:包括《程序员》的经典品牌栏目名人堂、软件产业、人物专访、软件创业及程序百味等,您即
Formanyprogrammers,discoveringRubyisarevelation.Theyareoverjoyedbyhowelegantlyan...
Duringthepastdecadetherehasbeenanexplosionincomputationandinformationtechnology....
《用户体验及其在通信产品开发中的应用》首先深入浅出地向读者介绍了用户体验的概念、理论基础、研究思路等;然后深入解析用户体
云计算概念.技术与架构 本书特色 《云计算:概念、技术与架构》涉及云计算领域的各个方面,涵盖了很多基本概念,共包含五个部分。**部分到第四部分主要涵盖了云计算基...
《翻盘》内容简介:被动还是主动,决定人的生命层次。处于被动地位的人,越顺受越难受;占据主动的人,越征战越强悍。而“翻盘”的
TheHands-On,PracticalGuidetoPreventingAjax-RelatedSecurityVulnerabilitiesMoreand...
多模式多尺度数据融合理论及其应用 内容简介 《多模式多尺度数据融合理论及其应用》首先针对一类不可重复测量的物理量,如时间、飞行器的位置、姿态及惯性参数等,建立多...
作为jQueryMobile的入门级读物,BradBroulik所著的《jQueryMobile快速入门》以示例方式讲解了jQueryMobile的基本知识和核...