Java EE 7 with GlassFish 4 Application Server

For Java developers who want to learn Java EE, you’ll find this practical guide makes it all quite simple. Starting with the installation of Glassfish 4 application server, you’ll then progress to developing powerful applications for it.
Preview in Mapt

Java EE 7 with GlassFish 4 Application Server



1 customer reviews
For Java developers who want to learn Java EE, you’ll find this practical guide makes it all quite simple. Starting with the installation of Glassfish 4 application server, you’ll then progress to developing powerful applications for it.
Mapt Subscription
FREE
$29.99/m after trial
eBook
$23.10
RRP $32.99
Save 29%
Print + eBook
$54.99
RRP $54.99
What do I get with a Mapt Pro subscription?
  • Unlimited access to all Packt’s 5,000+ eBooks and Videos
  • Early Access content, Progress Tracking, and Assessments
  • 1 Free eBook or Video to download and keep every month after trial
What do I get with an eBook?
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with Print & eBook?
  • Get a paperback copy of the book delivered to you
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with a Video?
  • Download this Video course in MP4 format
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
$0.00
$23.10
$54.99
$29.99 p/m after trial
RRP $32.99
RRP $54.99
Subscription
eBook
Print + eBook
Start 30 Day Trial

Frequently bought together


Java EE 7 with GlassFish 4 Application Server Book Cover
Java EE 7 with GlassFish 4 Application Server
$ 32.99
$ 23.10
Java EE 6 with GlassFish 3 Application Server Book Cover
Java EE 6 with GlassFish 3 Application Server
$ 29.99
$ 21.00
Buy 2 for $35.00
Save $27.98
Add to Cart

Book Details

ISBN 139781782176886
Paperback348 pages

Book Description

GlassFish is a free, open source application server which supports all the major Java features such as Enterprise JavaBeans, JPA, JavaServer Faces, JMS, RMI, JavaServer Pages, and servlets. It is the first Java EE 7 compliant application server. All major Java EE technologies and API's are covered in this version of Java. GlassFish server allows the user to work with the extensile, adaptable, and lightweight Java EE 7 platform.

This book explores the installation and configuration of GlassFish, and then moves on to Java EE 7 application development, covering all major Java EE 7 APIs. It focuses on going beyond the basics to develop Java applications deployed to the GlassFish 4 application server. The book covers all major Java EE 7 APIs including JSF 2.2, EJB 3.2, CDI 1.1, the Java API for WebSocket, JAX-WS, JAX-RS and more.

The book also introduces JSON-P, the Java API for JSON (Javascript Object Notation) Processing. This advanced topic deals with how the two APIs are used to process JSON function, namely the Model API and the Streaming API. Apart from revisiting Java Server Faces (JSF), it explains why Facelets, the new features introduced in modern versions of JSF, are the preferred view technology over Java Server Pages (JSP)

The later chapters explore competing implementations of the WebSocket standard in Java, describing the updates in JMS; which aims to provide a simpler API and reduction in boilerplate code among a host of other features. Readers will also learn how to secure Java EE applications by taking advantage of GlassFish's built-in security features. Finally, we learn more about the RESTful web service development using the JAX-RS specification.

Table of Contents

Chapter 1: Getting Started with GlassFish
An Overview of Java EE and GlassFish
Obtaining GlassFish
Installing GlassFish
Starting GlassFish
GlassFish domains
Setting up Database Connectivity
Summary
Chapter 2: JavaServer Faces
Introduction to JSF
Developing our first JSF application
Custom data validation
Customizing JSF's default messages
Ajax-enabling JSF applications
JSF 2.2 HTML5 support
JSF 2.2 Faces Flows
Additional JSF component libraries
Summary
Chapter 3: Object Relational Mapping with JPA
The CustomerDB database
Introducing the Java Persistence API
Final notes
Summary
Chapter 4: Enterprise JavaBeans
Introduction to session beans
Message-driven beans
Transactions in Enterprise JavaBeans
Enterprise JavaBean life cycles
Introduction to the EJB Timer Service
EJB Security
Summary
Chapter 5: Contexts and Dependency Injection
Named beans
Dependency injection
Working with CDI Qualifiers
Named bean scopes
Summary
Chapter 6: JSON Processing with JSON-P
The JSON-P Model API
The JSON-P Streaming API
Summary
Chapter 7: WebSockets
Developing a WebSocket server endpoint
Developing WebSocket clients
Additional information about the Java API for WebSocket
Summary
Chapter 8: The Java Message Service
Setting up GlassFish for JMS
Working with message queues
Working with message topics
Summary
Chapter 9: Securing Java EE Applications
Security realms
Summary
Chapter 10: Web Services with JAX-WS
Developing web services with the JAX-WS API
Exposing EJBs as web services
Securing web services
Securing EJB web services
Summary
Chapter 11: Developing RESTful Web Services with JAX-RS
Introducing RESTful web services and JAX-RS
Developing a simple RESTful web service
Developing a RESTful web service client
Working with query and path parameters
Summary

What You Will Learn

  • Develop web-based applications using JavaServer Faces (JSF) 2.2
  • Interact with databases via the Java Persistence API (JPA) 2.1
  • Create SOAP and RESTful web services via JAX_WS and JAX-RS APIs
  • Develop Enterprise JavaBeans (EJBs), including session and message-driven beans
  • Integrate enterprise application layers via Contexts and Dependency Injection (CDI) API
  • Generate and parse JavaScript Object Notation (JSON) data via the JSON-P API
  • Make WebSocket applications via the standard Java EE 7 WebSocket API

Authors

Table of Contents

Chapter 1: Getting Started with GlassFish
An Overview of Java EE and GlassFish
Obtaining GlassFish
Installing GlassFish
Starting GlassFish
GlassFish domains
Setting up Database Connectivity
Summary
Chapter 2: JavaServer Faces
Introduction to JSF
Developing our first JSF application
Custom data validation
Customizing JSF's default messages
Ajax-enabling JSF applications
JSF 2.2 HTML5 support
JSF 2.2 Faces Flows
Additional JSF component libraries
Summary
Chapter 3: Object Relational Mapping with JPA
The CustomerDB database
Introducing the Java Persistence API
Final notes
Summary
Chapter 4: Enterprise JavaBeans
Introduction to session beans
Message-driven beans
Transactions in Enterprise JavaBeans
Enterprise JavaBean life cycles
Introduction to the EJB Timer Service
EJB Security
Summary
Chapter 5: Contexts and Dependency Injection
Named beans
Dependency injection
Working with CDI Qualifiers
Named bean scopes
Summary
Chapter 6: JSON Processing with JSON-P
The JSON-P Model API
The JSON-P Streaming API
Summary
Chapter 7: WebSockets
Developing a WebSocket server endpoint
Developing WebSocket clients
Additional information about the Java API for WebSocket
Summary
Chapter 8: The Java Message Service
Setting up GlassFish for JMS
Working with message queues
Working with message topics
Summary
Chapter 9: Securing Java EE Applications
Security realms
Summary
Chapter 10: Web Services with JAX-WS
Developing web services with the JAX-WS API
Exposing EJBs as web services
Securing web services
Securing EJB web services
Summary
Chapter 11: Developing RESTful Web Services with JAX-RS
Introducing RESTful web services and JAX-RS
Developing a simple RESTful web service
Developing a RESTful web service client
Working with query and path parameters
Summary

Book Details

ISBN 139781782176886
Paperback348 pages
Read More
From 1 reviews

Read More Reviews

Recommended for You

Java EE 7 Development with NetBeans 8 Book Cover
Java EE 7 Development with NetBeans 8
$ 29.99
$ 21.00
Advanced Java® EE Development with WildFly® Book Cover
Advanced Java® EE Development with WildFly®
$ 39.99
$ 28.00
Java EE Development with Eclipse - Second Edition Book Cover
Java EE Development with Eclipse - Second Edition
$ 47.99
$ 33.60
RESTful Java Web Services - Second Edition Book Cover
RESTful Java Web Services - Second Edition
$ 35.99
$ 25.20
Java EE 7 Developer Handbook Book Cover
Java EE 7 Developer Handbook
$ 35.99
$ 25.20
GlassFish Administration Book Cover
GlassFish Administration
$ 26.99
$ 18.90