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
What’s New in Java EE 7
Chapter 2 Servlets
Handling Multipart Requests
Chapter 3 JavaServer Faces
Request Processing Life-Cycle Phases
Server and Client Extension Points
Resource Library Contracts
Passthrough Attributes and HTML5-Friendly Markup
Chapter 4 RESTful Web Services
Binding HTTP Methods
Multiple Resource Representations
Binding a Request to a Resource
Filters and Entity Interceptors
Validation of Resources
Chapter 5 SOAP-Based Web Services
Web Service Endpoints
Provider-Based Dynamic Endpoints
Web Service Client
Dispatch-Based Dynamic Client
Chapter 6 JSON Processing
Object Model API
Chapter 7 WebSocket
Annotated Server Endpoint
Programmatic Server Endpoint
Annotated Client Endpoint
Programmatic Client Endpoint
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
Portable Global JNDI Names
Chapter 9 Contexts and Dependency Injection
Discovery of Beans
Qualifier and Alternative
Producer and Disposer
Scopes and Contexts
Chapter 10 Concurrency Utilities
Dynamic Contextual Objects
Chapter 11 Bean Validation
Defining a Custom Constraint
Method and Constructor Constraint
Chapter 12 Java Transaction
Chapter 13 Java Persistence
Persistence Unit, Persistence Context, and Entity Manager
Create, Read, Update, and Delete Entities
Validating the Entities
Transactions and Locking
Chapter 14 Java Message Service
Sending a Message
Receiving a Message Synchronously
Receiving a Message Asynchronously
Quality of Service
Chapter 15 Batch Processing
Partitioning the Job
Chapter 16 Build an End-to-End Application
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)
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.
The animal on the cover of Java EE 7 Essentials is an Asiatic glassfish (a member of the family Ambassidae). Found only in the waters of Asia and Oceania, the fish in this family are divided into eight genera that include around 40 species. Aside from the Asiatic glassfish, the family also includes the Striped Glass Catfish, the Borneo Glass Catfish, the Duskyfin glassfish, and the Three-Striped African Glass Catfish. Most members of this family are quite small, but the larger species can grow to a maximum of 10 inches.
The most popular member of Ambassidae among aquarium hobbyists is the Indian glassfish, due to its distinctive transparent body. In many species of glassfish, the internal organs and skeleton are visible through the skin. Unfortunately, this remarkable trait has led to the practice of injecting dye directly into fish to produce neon stripes or spots. This process is incredibly harmful to the fish, and most die during the procedure. Any that live are sold as “painted” or “disco” fish, but they are very susceptible to infection and disease and usually die within weeks or months. In 1997, the UK publication Practical Fishkeeping started a largely successful campaign to stop merchants from stocking fish that have been dyed. While the movement was able to halt the sale of these fish in almost half the stores in the UK, the problem still persists in global markets.
Despite a reputation of being difficult to keep, glassfish actually make excellent aquarium additions if given the right environment. Their natural habitats range from fresh to salt water depending on the species, but most prefer standing freshwater as opposed to brackish salt water. It is better to keep a school instead of an individual or a pair, as a group of these fish will act much more energetically and boldly than would one or two alone.
The cover image is from a loose plate, origin unknown. The cover font is Adobe ITCGaramond. The text font is Adobe Minion Pro; the heading font is Adobe Myriad Condensed;and the code font is Dalton Maag’s Ubuntu Mono.
This is the current reference manual outside the releases specifications of enterprise java version 7, aka. Java EE 7. It covers all the major libraries of enterprise java. This will be helpful to you if you are a student or even a seasoned professional as it provides the newly released libraries & api in a non boring manner. However, there is a need to have an additional source of information while reading this and developing applications using JavaEE7. Disclaimer: I received my copy of the book in its beta version through the oreilly's bloggers review program.
Bottom Line Yes, I would recommend this to a friend
I think that this one is next must have for all Java EE developers who doesn't like to browse through the Java EE specifications. As a Java EE developer you probably know how many specifications cover given Java EE release. If you keep your fingers on pulse that's fine, on the other hand, if you have stuck with some outdated Java EE release in some ancient project this book is a really nice refresher. It covers most essential topics and provides simple examples that show how to use particular feature of the platform. What's new here comparing to Java EE 6 Pocket Guide? You will find here description of JSON processing, Web Sockets, concurrency related topics, extended chapter related to java transactions, and two, really nice features of Java EE 7 – Face Flows and Batch processing.
The concept of the book remains the same as for Java EE 6 Pocket Guide. Title was refreshed and slightly modified to be more groovy :)
Anyway, definitely this one is something nice to have at your desk if you want to make a quick sneak peek at crucial technologies inside Java EE.
Note! This book will not teach you Java EE! This is a reference. If you want to learn Java EE from the very beginning take a look at: Head First Servlets and JSP.
Bottom Line Yes, I would recommend this to a friend