Cover image for Java EE 7 with GlassFish 4 Application Server.
Java EE 7 with GlassFish 4 Application Server.
Title:
Java EE 7 with GlassFish 4 Application Server.
Author:
Heffelfinger, David R.
ISBN:
9781782176893
Personal Author:
Physical Description:
1 online resource (372 pages)
Contents:
Java EE 7 with GlassFish 4 Application Server -- Table of Contents -- Java EE 7 with GlassFish 4 Application Server -- Credits -- About the Author -- About the Reviewers -- www.PacktPub.com -- Support files, eBooks, discount offers and more -- Why Subscribe? -- Free Access for Packt account holders -- Instant Updates on New Packt Books -- Preface -- What this book covers -- What you need for this book -- Who this book is for -- Conventions -- Reader feedback -- Customer support -- Downloading the example code -- Errata -- Piracy -- Questions -- 1. Getting Started with GlassFish -- An Overview of Java EE and GlassFish -- What's new in Java EE 7? -- JavaServer Faces (JSF) 2.2 -- Java Persistence API (JPA) 2.1 -- Java API for RESTful Web Services (JAX-RS) 2.0 -- Java Message Service (JMS) 2.0 -- Java API for JSON Processing (JSON-P) 1.0 -- Java API for WebSocket 1.0 -- GlassFish advantages -- Obtaining GlassFish -- Installing GlassFish -- GlassFish dependencies -- Performing the installation -- Starting GlassFish -- Deploying our first Java EE application -- Deploying an application through the Web Console -- Undeploying an application through the GlassFish Admin Console -- Deploying an application through the command line -- The autodeploy directory -- The asadmin command-line utility -- GlassFish domains -- Creating Domains -- Deleting domains -- Stopping a domain -- Setting up Database Connectivity -- Setting up connection pools -- Setting up the data sources -- Summary -- 2. JavaServer Faces -- Introduction to JSF -- Facelets -- Optional faces-config.xml -- Standard resource locations -- Developing our first JSF application -- Facelets -- Project stages -- Validation -- Grouping components -- Form submission -- Named beans -- Navigation -- Custom data validation -- Creating custom validators -- Validator methods.

Customizing JSF's default messages -- Customizing message styles -- Customizing message text -- Ajax-enabling JSF applications -- JSF 2.2 HTML5 support -- The HTML5-friendly markup -- Pass-through elements -- JSF 2.2 Faces Flows -- Additional JSF component libraries -- Summary -- 3. Object Relational Mapping with JPA -- The CustomerDB database -- Introducing the Java Persistence API -- Entity relationships -- One-to-one relationships -- One-to-many relationships -- Many-to-many relationships -- Composite primary keys -- Introducing the Java Persistence Query Language -- Introducing the Criteria API -- Updating data with the Criteria API -- Deleting data with the Criteria API -- Bean Validation support -- Final notes -- Summary -- 4. Enterprise JavaBeans -- Introduction to session beans -- Developing a simple session bean -- A more realistic example -- Invoking session beans from web applications -- Introduction to singleton session beans -- Asynchronous method calls -- Message-driven beans -- Transactions in Enterprise JavaBeans -- Container-managed transactions -- Bean-managed transactions -- Enterprise JavaBean life cycles -- The stateful session bean life cycle -- The stateless session bean life cycle -- Message-driven bean life cycle -- Introduction to the EJB Timer Service -- Calendar-based EJB timer expressions -- EJB Security -- Client authentication -- Summary -- 5. Contexts and Dependency Injection -- Named beans -- Dependency injection -- Working with CDI Qualifiers -- Named bean scopes -- Summary -- 6. JSON Processing with JSON-P -- The JSON-P Model API -- Generating JSON data with the Model API -- Parsing JSON data with the Model API -- The JSON-P Streaming API -- Generating JSON data with the Streaming API -- Parsing JSON data with the Streaming API -- Summary -- 7. WebSockets -- Developing a WebSocket server endpoint.

Developing an annotated WebSocket server endpoint -- Developing WebSocket clients -- Developing JavaScript client-side WebSocket code -- Developing WebSocket clients in Java -- Additional information about the Java API for WebSocket -- Summary -- 8. The Java Message Service -- Setting up GlassFish for JMS -- Setting up a JMS connection factory -- Setting up a JMS queue -- Setting up a JMS topic -- Working with message queues -- Sending messages to a message queue -- Retrieving messages from a message queue -- Asynchronously receiving messages from a message queue -- Browsing message queues -- Working with message topics -- Sending messages to a message topic -- Receiving messages from a message topic -- Creating durable subscribers -- Summary -- 9. Securing Java EE Applications -- Security realms -- Predefined security realms -- The admin-realm -- The file realm -- Basic authentication via the file realm -- Form-based authentication -- The certificate realm -- Creating self-signed certificates -- Configuring applications to use the certificate realm -- Defining additional realms -- Defining additional file realms -- Defining additional certificate realms -- Defining an LDAP realm -- Defining a Solaris realm -- Defining a JDBC realm -- Defining custom realms -- Summary -- 10. Web Services with JAX-WS -- Developing web services with the JAX-WS API -- Developing a web service client -- Sending attachments to web services -- Exposing EJBs as web services -- EJB web service clients -- Securing web services -- Securing EJB web services -- Summary -- 11. Developing RESTful Web Services with JAX-RS -- Introducing RESTful web services and JAX-RS -- Developing a simple RESTful web service -- Configuring the REST resources path for our application -- Configuring via the @ApplicationPath annotation -- Testing our web service.

Converting data between Java and XML with JAXB -- Developing a RESTful web service client -- Working with query and path parameters -- Query parameters -- Sending query parameters via the JAX-RS client API -- Path parameters -- Sending path parameters via the JAX-RS Client API -- Summary -- Index.
Abstract:
This book is a practical guide and follows a very user-friendly approach. The book aims to get the reader up to speed in Java EE 7 development. All major Java EE 7 APIs and the details of the GlassFish 4 server are covered followed by examples of their use.If you are a Java developers who wants to become proficient with Java EE 7 this book is ideal for you. Readers are expected to have some experience with Java and to have developed and deployed applications in the past, but don't need any previous knowledge of Java EE or J2EE. It teaches the reader how to use GlassFish 4 to develop and deploy applications.
Local Note:
Electronic reproduction. Ann Arbor, Michigan : ProQuest Ebook Central, 2017. Available via World Wide Web. Access may be limited to ProQuest Ebook Central affiliated libraries.
Electronic Access:
Click to View
Holds: Copies: