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
《中共江苏地方简史》内容简介:《中共江苏地方简史》(1921—2021)是江苏省委党史工办为迎接建党100周年而编写的一本党史书籍。该
《合伙人制度》内容简介:在这个“大众创业,万众创新”的时代,合伙人制度的优势得到了充分的凸显:可以避免传统的职业经理人制带
《公司法学(下)》内容简介:本书通过浅显的文字说明,配以具体案例,对董事的注意义务和忠诚义务、派生诉讼、征集投票代理权等国
本书全面、深入地介绍了数字通信系统的基础理论和应用,内容包括数字调制和编码的基本理论以及频谱扩展通信、蜂窝式无线电通信和
JenniferCampbell是多伦多大学计算机科学系高级讲师,本书所基于的课程就是由她创建的。PaulGries是多伦多大学计算机科学系高级讲
《亲历中国四十年》内容简介:“我的四十年”丛书,包括《四十年四十人》《四十年来家国》《亲历中国四十年》三册,分别由中国人、
ANSYS Fluent 15.0流体计算从入门到精通-升级版-(含DVD光盘1张) 本书特色 fluent软件是目前国际上比较流行的商业cfd软件,只要涉及流...
ToddParkerFilament集团公司创始人,具有12年以上创建高度实用、可访问和直观界面的经验。Todd曾在Zefer公司和CSC顾问公司担任首
《普通高等教育十一五国家级规划教材•模拟电子电路及技术基础》分两篇,共11章。第一篇(一~三章)以系统应用为出发点,介绍放大器
《谈医说病》内容简介:渡边淳一以对谈方式,与日本医学专家探讨不孕症、腰膝痛、眼疾、流感、类风湿病、花粉症、糖尿病、特应性皮
《金蔷薇》内容简介:《金蔷薇》是一部总结作者本人创作经验、研究俄罗斯和世界上许多文学大师的创作活动、探讨文学创作的过程、方
机械CAD/CAM技术-第3版 内容简介 本书系统地讲述了机械cad/cam的基本概念、应用方法和关键技术。主要内容包括cad/cam系统工作原理、软硬件支撑环...
本书从金融人士的视角研究互联网时代的金融创新,全面系统地介绍了我国互联网金融的产生背景及原因,梳理了互联网金融的基本理论
《台湾念真情》内容简介:“台湾念真情”是吴念真的第一个电视节目,重播十余年。在这本细述人间邂逅的“台湾笔记”中,吴念真以独
《ASP.NET4高级程序设计(第4版)》,本书是ASP.NET领域的鸿篇巨制,全面讲解了ASP.NET4的各种特性及其背后的工作原理,并给出了许
Readytolearnprogramming?StartHere!ALearnthefundamentalsofprogrammingwiththeKinec...
本书初版于1983年,是20世纪80年代轰动知识界的“走向未来丛书”之一种。作者采用中西对比的视角,探讨了近代科学技术结构发展的
Delphi编写黑客工具的书作者简介 网名“无敌小龙”,籍贯武汉,联系方式QQ:5450913,BLOG:hi.baidu.com/pespin,对计算机网络
《JSP网络程序设计与案例开发教程》内容简介:JSP是目前流行的网络程序开发技术,熟练掌握该技术是计算机软件应用及相关专业学生的
《淘宝网店爆款打造 三周做出爆款,店铺精准引流》内容简介:本书主要讲述了如何为淘宝网店打造超常态交易量以及人气的 “爆款宝贝