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
《智能制造基础共性标准研究成果(三)》内容简介:2015年开始,工业和信息化部与财政部共同实施了“智能制造综合标准化与新模式应
《Android应用测试与调试实战》内容简介:本书是Android应用测试与调试领域最为系统、深入且极具实践指导意义的著作,由拥有近10年
本书以清晰简明的风格解释了有关的标准、概念和实现,极具权威性。读者可以从中了解到建立和部署Web服务的主要工具包。书中用许多
《36讲资治通鉴通识课:1362年历史时空》内容简介:《资治通鉴》是北宋司马光主编的中国首部编年体通史,是传统的史学巅峰著作,但
《20几岁,你为什么害怕来不及》内容简介:2015年6月,林夏萨摩,在简书上写下了一篇《你才20多岁,为什么总怕来不及》,一时间引爆
《任弼时风采》内容简介:任弼时(1904—1950),伟大的马克思主义者,无产阶级革命家、政治家、组织家,党的第一代领导集体的重要
《设计与视知觉》是由中国建筑工业出版社出版的。目录 序前言绪论:设计与视知觉1明暗从涂鸦到设计2形状画面中正负形状的互动3体
在线阅读本书InformationsdesignisteinzentralesInstrumentzurLösungvonKommunikationsaufga...
《中国人力资源和社会保障发展研究》内容简介:本书立足于新中国成立以来人力资源和社会保障的历史发展脉络,系统梳理中国企业人力
《快学熟用D3》内容简介:本书所讲的D3.js其实是数据可视化这一门类的库,市面上讲解它的书籍早已汗牛充栋。这本书虽然名字是“D3
TheInsidersBest-PracticeGuidetoRapidPyQt4GUIDevelopmentWhetheryourebuildingGUIpr...
DAMNGOODADVICE(forpeoplewithtalent!)isalookintothemindofoneofAmericasmostlegenda...
本书由浅入深、循序渐进地介绍了Windows驱动程序的开发方法与调试技巧。本书共分23章,内容涵盖了Windows操作系统的基本原理、NT
錫製鈕釦在低溫時會崩解成粉末狀,西元一八一二年拿破崙對俄軍戰役的大潰敗,是否就是俄羅斯的冰天雪地讓這支堪稱史上最大軍旅因
内容简介:MongoDB是为处理大数据而生的一款面向文档的数据库,由10gen公司开发和维护。本书作者KyleBanker曾在该公司负责MongoD
《学设计,非去不可》收录了王千睿、胡佑宗、周育如、施令红、甘泰来、高弘树、赖雨农、黄怡儒、林国基、林怡芬、史明辉、庞铫13位
数据驱动的金融时间序列预测模型研究 本书特色 以非线性动力学的观点看来,现代金融理论中金融系统的不确定性恰恰源于其自身就是一个受多种因素综合影响的具有开放性质的...
《零成本实现Web性能测试:基于ApacheJMeter》是一本关于Web性能测试的实战书籍,读者朋友们在认真阅读完《零成本实现Web性能测试
Createyourownrobots,toys,remotecontrollers,alarms,detectors,andmorewiththeArduin...
《徐肖冰传》内容简介:在摄影机后面观察历史的人,他用镜头定格20世纪中国的烽火硝烟、恩怨情仇,用影像鲜活了一段中国现代革命史