Book description
Sun's enterprise Java™ platform, Java EE (Enterprise Edition), is getting a facelift! Beginning Java EE 6 Platform with GlassFish 3 is one of the first tutorial books on the forthcoming 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 in enterprise Java technologies and platform.
What you'll learn
Get started with the new Java EE 6 Platform from Sun.
Explore and use the new EJB 3.1 and JPA 2.0 APIs from entities to session beans to message-driven beans, and more.
Discover the new web-tier development APIs including JSPs, JSTL, and Expression Language, and especially the new JSF 2.0 and Facelets.
Uncover the new web services, RESTful services, and more available in Java EE 6.
Create dynamic user interfaces for your enterprise and transactional Java applications.
And more...
Who is this book for?
This book is suitable for advanced Java programmers as well as Java EE 6 beginners. Architects will also find information about how to layer their Java EE applications.
Table of contents
- Copyright
- Foreword
- About the Author
- About the Technical Reviewer
- Acknowledgments
- Introduction
- 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. Mapping with XML
- 3.3. Embeddables
- 3.4. Relationship Mapping
- 3.5. Inheritance Mapping
- 3.6. 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.3.1. Persisting an Entity
- 4.2.3.2. Finding by ID
- 4.2.3.3. Removing an Entity
- 4.2.3.4. Orphan Removal
- 4.2.3.5. Synchronizing with the Database
- 4.2.3.6. Flushing Data
- 4.2.3.7. Refreshing an Entity
- 4.2.3.8. Content of the Persistence Context
- 4.2.3.9. Contains
- 4.2.3.10. Clear and Detach
- 4.2.3.11. Merging an Entity
- 4.2.3.12. Updating an Entity
- 4.2.3.13. Cascading Events
- 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 Derby
- 6.3.8. Writing the BookEJBTest Class
- 6.4. Summary
- 7. Session Beans and the Timer Service
- 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.4.1. Point-to-Point
- 13.4.2. Publish-Subscribe
-
13.4.3. JMS API
- 13.4.3.1. Administered Objects
- 13.4.3.2. ConnectionFactory
- 13.4.3.3. Destination
- 13.4.3.4. Injection
- 13.4.3.5. Connection
- 13.4.3.6. Session
- 13.4.3.7. Messages
- 13.4.3.8. Header
- 13.4.3.9. Properties
- 13.4.3.10. Body
- 13.4.3.11. MessageProducer
- 13.4.3.12. MessageConsumer
- 13.4.3.13. Synchronous Delivery
- 13.4.3.14. Asynchronous Delivery
- 13.4.4. Selectors
- 13.4.5. Reliability Mechanisms
- 13.5. Message-Driven Beans
- 13.6. Putting It All Together
- 13.7. Summary
- 14. SOAP Web Services
-
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: From Novice to Professional
- Author(s):
- Release date: May 2009
- Publisher(s): Apress
- ISBN: 9781430219545
You might also like
book
Beginning Java™ EE 6 Platform with GlassFish™ 3
Java Enterprise Edition (Java EE) continues to be one of the leading Java technologies and platforms …
book
EJB™ 2.1 Kick Start
Not just another EJB book, EJB 2.1 Kick Start distinguishes itself in two key ways. First, …
book
Ivor Horton's Beginning Java®, Java 7 Edition
Ivor Horton's approach is teaching Java is so effective and popular that he is one of …
book
Ivor Horton's Beginning Visual C++ 2013
Learn C++ with the best tutorial on the market! Horton's unique tutorial approach and step-by-step guidance …