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
《天线理论与设计》(第2版)是W.L.Stutzman和G.A.Thiele所著《天线理论与设计》第2版中的译本。原作者都曾担任IEEE-AP学会主席,
《现代数字与模拟通信系统(第4版)(英文版)》是电子工程领域中的理想的通信系统入门教材。作者首先介绍了信号与系统的基础理论和通
《黑客攻防技术宝典:系统实战篇(第2版)》由世界顶级安全专家亲自执笔,详细阐述了系统安全、应用程序安全、软件破解、加密解密等
《萝莉正太动漫人物角色设定技法:元气森林》内容简介:萝莉和正太是对可爱的女孩和男孩的别称,他们不同的造型非常惹人喜爱。在以
社会网络分析方法在图书情报领域的应用研究 本书特色 目前,图书情报领域应用社会网络分析法的研究论著不断增加,已成为国内社会网络分析应用*重要的研究领域?本书通过...
《社会心理服务体系建设实践指导》内容简介:近几年来,河南安阳在社会心理服务体系建设方面,进行了积极探索,工作卓有成效,走社
日本の出版史に独自の位置づけで歴史を刻む出版社である工作舎の設立時から構想があったというのが、この『全宇宙誌』である。「
本书从命题逻辑、谓词逻辑、模态逻辑和计算机逻辑等不同角度,对隐喻现象在在思维和语言表达中的应用做了多角度、多层次的深入分
“工艺美术运动”、“新艺术运动”和“装饰艺术运动”是人类设计和美术运动史上非常独特的相互交错的伟大实践,也是改变了今天我
《LaTeX2e完全学习手册》内容简介:LaTeX2e,简称LaTeX,是一种专业的高品质文稿排版系统,目前已成为国际学术出版界广泛使用的排
《Unity 2D 游戏开发从入门到精通》内容简介:由于智能手机近些年井喷似的发展和普及,极大地带动了手机游戏的发展,还因此诞生了一
人工神经网络基础 本书特色 本书是为信号与信息处理、模式识别与智能系统等学科的本科高年级学生和硕士生编写的教材,也是相关专业技术人员自学人工神经网络的入门参考书...
《移动App性能评测与优化》内容简介:本书通过六个专题方向介绍腾讯公司移动互联网事业群在移动应用性能评测优化方面的实战经验,涉
本书系统地阐述了人因工程学的基础理论、设计方法及应用分析。全书共12章,第1章为人因工程学总论,第2章至第5章为人的形态、生理
Thepurposeofthisbookistohelpyouunderstandhowtoprogramshared-memoryparallelmachin...
《你不知道的JavaScript(下卷)》内容简介:JavaScript这门语言简单易用,很容易上手,但其语言机制复杂微妙,即使是经验丰富的Ja
《端午诗词》内容简介:《诗词端午》选录历代吟咏端午风俗诗词作品共八十多首,目的就是为了让今天的读者尽可能多地获取这方面的厉
《一天25小时》内容简介:本书首次提出了以理财的观念来理时间,这一全新的时间管理视角,书中将时间管理分为6 个步骤,各部分以介
Thisbookisapracticalguidefilledwithreal-worldexamplesthatwillhelpyoudiscovertheb...
《走过:水彩风景写生技法精讲(视频教学版)》内容简介:本书共7章。第1章介绍绘画所用的材料与工具,使读者快速找到适合自己的画