Synopses & Reviews
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.
Youll 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
Synopsis
Java EE 7 is a new version of the platform after 3.5 years. This is going to be the standard way to build enterprise, web, and HTML5 applications in Java. This book will provide a good overview of the main components of the platforms with extensive code samples. This will allow the reader to understand the platform explained using simple and easy-to-understand language and apply the knowledge using the code samples.
About the Author
Arun Gupta is a Java evangelist working at Oracle. Arun has over 15 years of experience in the software industry working in the Java™ platform and several web-related technologies. In his current role, he works to create and foster the community around Java EE and GlassFish. He has been with the Java EE team since its inception and contributed to all releases. Arun has extensive world wide speaking experience on myriad of topics and loves to engage with the community, customers, partners, and Java User Groups everywhere to spread the goodness of Java.
He is a prolific blogger at http://blogs.oracle.com/arungupta with over 1300 blog entries and frequent visitors from all around the world with a cumulative page visits > 1.2 million. He is a passionate runner and always up for running in any part of the world. You can catch him at @arungupta.
Table of Contents
Foreword; Preface; Conventions Used in This Book; Using Code Examples; Safari® Books Online; How to Contact Us; Acknowledgments; Chapter 1: Java Platform, Enterprise Edition; 1.1 Introduction; 1.2 Deliverables; 1.3 What's New in Java EE 7; Chapter 2: Servlets; 2.1 WebServlet; 2.2 Servlet Filters; 2.3 Event Listeners; 2.4 Asynchronous Support; 2.5 Nonblocking I/O; 2.6 Web Fragments; 2.7 Security; 2.8 Resource Packaging; 2.9 Error Mapping; 2.10 Handling Multipart Requests; 2.11 Upgrade Processing; Chapter 3: JavaServer Faces; 3.1 Facelets; 3.2 Resource Handling; 3.3 Composite Components; 3.4 Request Processing Life-Cycle Phases; 3.5 Ajax; 3.6 HTTP GET; 3.7 Server and Client Extension Points; 3.8 Validating Data; 3.9 Navigation Rules; 3.10 Faces Flow; 3.11 Resource Library Contracts; 3.12 Passthrough Attributes and HTML5-Friendly Markup; 3.13 Component Tags; Chapter 4: RESTful Web Services; 4.1 Resources; 4.2 Binding HTTP Methods; 4.3 Multiple Resource Representations; 4.4 Binding a Request to a Resource; 4.5 Entity Providers; 4.6 Client API; 4.7 Mapping Exceptions; 4.8 Filters and Entity Interceptors; 4.9 Validation of Resources; Chapter 5: SOAP-Based Web Services; 5.1 Web Service Endpoints; 5.2 Provider-Based Dynamic Endpoints; 5.3 Endpoint-Based Endpoints; 5.4 Web Service Client; 5.5 Dispatch-Based Dynamic Client; 5.6 Handlers; Chapter 6: JSON Processing; 6.1 Streaming API; 6.2 Object Model API; Chapter 7: WebSocket; 7.1 Annotated Server Endpoint; 7.2 Programmatic Server Endpoint; 7.3 Annotated Client Endpoint; 7.4 Programmatic Client Endpoint; 7.5 JavaScript WebSocket Client; 7.6 Encoders and Decoders; 7.7 Integration with Java EE Security; Chapter 8: Enterprise JavaBeans; 8.1 Stateful Session Beans; 8.2 Stateless Session Beans; 8.3 Singleton Session Beans; 8.4 Life-Cycle Event Callbacks; 8.5 Message-Driven Beans; 8.6 Portable Global JNDI Names; 8.7 Transactions; 8.8 Asynchronous Invocation; 8.9 Timers; 8.10 Embeddable API; 8.11 EJB Lite; Chapter 9: Contexts and Dependency Injection; 9.1 Discovery of Beans; 9.2 Injection Points; 9.3 Qualifier and Alternative; 9.4 Producer and Disposer; 9.5 Interceptors; 9.6 Decorators; 9.7 Scopes and Contexts; 9.8 Stereotypes; 9.9 Events; 9.10 Portable Extensions; 9.11 Built-in Beans; 9.12 Life-Cycle Callbacks; Chapter 10: Concurrency Utilities; 10.1 Asynchronous Tasks; 10.2 Schedule Tasks; 10.3 Managed Threads; 10.4 Dynamic Contextual Objects; Chapter 11: Bean Validation; 11.1 Built-in Constraints; 11.2 Defining a Custom Constraint; 11.3 Validation Groups; 11.4 Method and Constructor Constraint; Chapter 12: Java Transaction; 12.1 User-Managed Transactions; 12.2 Container-Managed Transactions; 12.3 @TransactionScoped; Chapter 13: Java Persistence; 13.1 Entities; 13.2 Persistence Unit, Persistence Context, and Entity Manager; 13.3 Schema Generation; 13.4 Create, Read, Update, and Delete Entities; 13.5 Entity Listeners; 13.6 Stored Procedures; 13.7 Validating the Entities; 13.8 Transactions and Locking; 13.9 Caching; Chapter 14: Java Message Service; 14.1 Sending a Message; 14.2 Receiving a Message Synchronously; 14.3 Receiving a Message Asynchronously; 14.4 Quality of Service; 14.5 Temporary Destinations; Chapter 15: Batch Processing; 15.1 Chunk-Oriented Processing; 15.2 Batchlet Processing; 15.3 Listeners; 15.4 Job Sequence; 15.5 Partitioning the Job; Chapter 16: Build an End-to-End Application; 16.1 Introduction; 16.2 Problem Statement; 16.3 Walkthrough of a Sample Application; 16.4 Show Booking (JavaServer Faces); 16.5 Chat Room (Java API for WebSocket); 16.6 View and Delete Movies (Java API for RESTful Web Services); 16.7 Add Movie (Java API for JSON Processing); 16.8 Ticket Sales (Batch Applications for the Java Platform); 16.9 Movie Points (Java Message Service 2); 16.10 Conclusion; 16.11 Troubleshooting; 16.12 Completed Solution; Further Reading; Web Technology Specifications; Enterprise Technology Specifications; Web Service Technologies; Management and Security Technologies; Colophon;