Book description
Java Enterprise Edition (Java EE) continues to be one of the leading Java technologies and platforms from Oracle (previously Sun). Beginning Java EE 6 Platform with GlassFish 3, Second Edition is this first tutorial book on the final (RTM) version of the Java EE 6 Platform.
Step by step and easy to follow, this book describes many of the Java EE 6 specifications and reference implementations, and shows them in action using practical examples. This book uses the new version of GlassFish 3 to deploy and administer the code examples.
Written by an expert member of the Java EE 6 specification request and review board in the Java Community Process (JCP), this book contains the best information possible, from an expert's perspective on enterprise Java technologies.
Table of contents
- Copyright
- Foreword
- About the Author
- About the Technical Reviewer
- Acknowledgments
- Preface
- 1. Java EE 6 at a Glance
-
2. Java Persistence
- 2.1. JPA Specification Overview
- 2.2. Understanding Entities
-
2.3. Putting it all Together
- 2.3.1. Writing the Book Entity
- 2.3.2. Writing the Main Class
- 2.3.3. Persistence Unit for the Main Class
- 2.3.4. Compiling with Maven
- 2.3.5. Running the Main Class with Derby
- 2.3.6. Writing the BookTest Class
- 2.3.7. Persistence Unit for the BookTest Class
- 2.3.8. Running the BookTest Class with Embedded Derby
- 2.4. Summary
-
3. Object-Relational Mapping
- 3.1. How to Map an Entity
- 3.2. Elementary Mapping
- 3.3. Mapping with XML
- 3.4. Embeddables
- 3.5. Relationship Mapping
- 3.6. Inheritance Mapping
- 3.7. Summary
-
4. Managing Persistent Objects
- 4.1. How to Query an Entity
-
4.2. Entity Manager
- 4.2.1. Obtaining an Entity Manager
- 4.2.2. Persistence Context
- 4.2.3. Manipulating Entities
- 4.2.4. Cache API
- 4.3. JPQL
- 4.4. Queries
- 4.5. Concurrency
- 4.6. Summary
- 5. Callbacks and Listeners
-
6. Enterprise Java Beans
- 6.1. Understanding EJBs
- 6.2. EJB Specification Overview
-
6.3. Putting It All Together
- 6.3.1. Writing the Book Entity
- 6.3.2. Writing the BookEJB Stateless Session Bean
- 6.3.3. Persistence Unit for the BookEJB
- 6.3.4. Writing the Main Class
- 6.3.5. Compiling and Packaging with Maven
- 6.3.6. Deploying on GlassFish
- 6.3.7. Running the Main Class with the Application Client Container
- 6.3.8. Writing the BookEJBTest Class
- 6.4. Summary
-
7. Session Beans and the Timer Service
-
7.1. Session Beans
- 7.1.1. Stateless Beans
- 7.1.2. Stateful Beans
- 7.1.3. Singletons
- 7.1.4. Session Bean Model
- 7.1.5. Asynchronous Calls
- 7.1.6. Embeddable Usage
- 7.2. The Timer Service
- 7.3. Summary
-
7.1. Session Beans
- 8. Callbacks and Interceptors
- 9. Transactions and Security
-
10. JavaServer Faces
- 10.1. Understanding JSF
- 10.2. Web Interface Specifications Overview
-
10.3. Putting It All Together
- 10.3.1. Writing the Book Entity
- 10.3.2. Writing the BookEJB
- 10.3.3. Writing the BookController Managed Bean
- 10.3.4. Writing the newBook.xhtml Page
- 10.3.5. Writing the listBooks.xhtml Page
- 10.3.6. Configuration with web.xml
- 10.3.7. Compiling and Packaging with Maven
- 10.3.8. Deploying on GlassFish
- 10.3.9. Running the Example
- 10.4. Summary
- 11. Pages and Components
- 12. Processing and Navigation
-
13. Sending Messages
- 13.1. Understanding Messages
- 13.2. Messaging Specification Overview
- 13.3. How to Send and Receive a Message
- 13.4. Java Messaging Service
- 13.5. Message-Driven Beans
- 13.6. Putting It All Together
- 13.7. Summary
-
14. SOAP Web Services
- 14.1. Understanding SOAP Web Services
- 14.2. SOAP Web Services Specification Overview
- 14.3. How to Invoke a SOAP Web Service
- 14.4. Java Architecture for XML Binding
- 14.5. The Invisible Part of the Iceberg
- 14.6. Java API for XML-Based Web Services
- 14.7. Putting It All Together
- 14.8. Summary
-
15. RESTful Web Services
- 15.1. Understanding RESTful Web Services
- 15.2. RESTful Web Services Specification
- 15.3. The REST Approach
-
15.4. Java API for RESTful Web Services
- 15.4.1. The JAX-RS Model
- 15.4.2. How to Write a REST Service
- 15.4.3. URI Definition
- 15.4.4. Extracting Parameters
- 15.4.5. Consuming and Producing Content Types
- 15.4.6. Entity Provider
- 15.4.7. Methods or the Uniform Interface
- 15.4.8. Contextual Information
- 15.4.9. Exception Handling
- 15.4.10. Life Cycle
- 15.5. Putting It All Together
- 15.6. Summary
Product information
- Title: Beginning Java™ EE 6 Platform with GlassFish™ 3
- Author(s):
- Release date: August 2010
- Publisher(s): Apress
- ISBN: 9781430228899
You might also like
book
Beginning Java™ EE 6 Platform with GlassFish™ 3: From Novice to Professional
Sun's enterprise Java™ platform, Java EE (Enterprise Edition), is getting a facelift! Beginning Java EE 6 …
book
Enterprise JavaBeans 3.1, 6th Edition
Learn how to code, package, deploy, and test functional Enterprise JavaBeans with the latest edition of …
book
Java APIs, Extensions and Libraries: With JavaFX, JDBC, jmod, jlink, Networking, and the Process API
This book completes the Apress Java learning journey and is a comprehensive approach to learning Java …
book
The LEGO Arduino Cookbook: Expanding the Realm of MINDSTORMS EV3 Invention
Push into new fields of technology using LEGO and Arduino with the projects in this Cookbook. …