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
《基础会计实训教程》内容简介:“基础会计实训”是会计及相关专业的专业基础实训课程,在会计系列课程中占有重要地位。本书依据最
Thisthree-volumesetLNCS4554-4556constitutestherefereedproceedingsofthe4thInterna...
《将战略落地:重新定义目标驱动与执行》内容简介:本书旨在指导和帮助企业实现战略落地。作者以企业管理顾问的角色,在数十年的管
《经典电影如何讲故事》内容简介:好电影都讲了一个好故事,那些遭遇“滑铁卢”、不受市场待见的“烂片”,很大程度上是故事设计存
LABVIEW入门与提该范例教程 内容简介 本书详细介绍了使用LabVIEW进行虚拟仪器开发的方法。为了帮助读者快速轻松地进入LabVIEW编程世界,本书的编写...
《中国就业战略报告:推动实施更高质量的就业(2020)》内容简介:本报告是中国人民大学研究报告系列中的一本,就现阶段推动实施更
这本书中的99种发明,是矗立在人类历史进程中一座座闪耀着智慧之光的丰碑,一位先哲说过:几千年来,在人类生活中,任何帝国、任
《Processing开发实战》内容简介:Processing简单易学的界面和编程风格,使很多机器人爱好者或电子制作爱好者,可以借助它完成机器
kh10269名师讲坛Linux从入门到精通 内容简介 本书是中国台湾优秀it图书作家丰士昌先生的*新力作,总结了作者10余年来使用linux操作系统的经验和技...
Fullofwriting,reports,andrecommendations,TheMonocleGuidetoBetterlivingisoriginal...
社会舆论传播、演化和引导:网络建模与仿真视角 内容简介 本书从网络建模和系统仿真的视角,全面分析了自媒体时代社会舆论传播、演化和引导的机理和规律。全书共分四篇:...
Exploratorydataanalysis(EDA)isaboutdetectinganddescribingpatterns,trends,andrela...
视频动作识别研究 内容简介 人体动作识别具有非常广泛的应用,但是由于不同人在不同的场景下做同一类动作表现出的视觉差异非常大,所以动作识别研究具有非常大的挑战。《...
机器人爱好者-第2辑 本书特色 本书是美国机器人杂志《Servo》精华内容的合集。 全书根据主题内容的相关性,进行了精选和重新组织,分为5章。 第1章介绍了机器...
《赛雷三分钟漫画三国演义4》内容简介:1000万人都在看的“超萌赛雷”,前后创作三年,精心绘制全彩漫画三国演义! 电影式全场景,
《为什么是中国》内容简介:金一南将军全新著作,一部感天动地的奋斗史诗,一代一代人铸就的中华之魂。以广阔全面的视野、一以贯之
揭示数字化主流大趋势的最新权威论著《主流》作者的最新力作!与法国秋季新版同步上市!面对数字化时代的到来,美国、欧盟、中国
錢研發的高科技產品,為何九五%都是賠錢貨?錢景?還是陷阱?九組關鍵準則,判讀最值得投資的高科技產業。對創造、投資新科技的
在台灣先行出版的《龍捲風暴》《大金剛法則》,事實上是本書《跨越鴻溝》的續作。但由於本書初版於1991年問世,書中所舉個案與例
《电影与抗战》内容简介:本书为中国电影史研究专著,以十四年抗战期间电影的发展为整体考察对象,贯穿起局部抗战和全面抗战时期电