Log In
Or create an account ->
Imperial Library
Home
About
News
Upload
Forum
Help
Login/SignUp
Index
Title Page
Copyright
Java EE 8 Application Development
Credits
About the Author
About the Reviewers
www.PacktPub.com
Why subscribe?
Customer Feedback
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
Introduction to Java EE
Introduction to Java EE
Java community process
Java EE APIs
One standard, multiple implementations
Java EE, J2EE, and the Spring framework
Summary
JavaServer Faces
Introducing JSF
Facelets
Optional faces-config.xml
Standard resource locations
Developing our first JSF application
Facelets
Project stages
Validation
Grouping components
Form submission
Named beans
Named bean scopes
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 HTML5 support
HTML5-friendly markup
Pass-through attributes
JSF 2.2 Faces flows
Injecting JSF artifacts
JSF WebSocket support
Additional JSF component libraries
Summary
Object Relational Mapping with the Java Persistence API
The Customer database
The Java Persistence API
Entity relationships
One-to-one relationships
One-to-many relationships
Many-to-many relationships
Composite primary keys
Java Persistence Query Language
The Criteria API
Updating data with the Criteria API
Deleting data with the Criteria API
Bean Validation support
Final notes
Summary
Enterprise JavaBeans
Session beans
A simple session bean
Implementing EJB client code
A more realistic example
Invoking session beans from web applications
Singleton session beans
Asynchronous method calls
Message-driven beans
Transactions in enterprise JavaBeans
Container-managed transactions
Bean-managed transactions
Enterprise JavaBean life cycles
Stateful session bean life cycle
Stateless and singleton session bean life cycles
Message-driven bean life cycle
EJB timer service
Calendar-based EJB timer expressions
EJB security
Client authentication
Summary
Contexts and Dependency Injection
Named beans
Dependency injection
Qualifiers
Named bean scopes
CDI events
Firing CDI events
Handling CDI events
Asynchronous events
Event ordering
Summary
JSON Processing with JSON-P and JSON-B
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
JSON pointer
JSON Patch
Populating Java objects from JSON with JSON-B
Generating JSON strings from Java objects with JSON-B
Summary
WebSocket
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
Java Messaging Service
Message queues
Sending messages to a message queue
Retrieving messages from a message queue
Browsing message queues
Message topics
Sending messages to a message topic
Receiving messages from a message topic
Creating durable subscribers
Summary
Securing Java EE Applications
Identity stores
Setting up an identity store stored in a relational database
Setting up an identity store stored in an LDAP database
Custom identity stores
Authentication mechanisms
Basic authentication mechanism
Form authentication mechanism
Custom form authentication mechanism
Summary
RESTful Web Services with JAX-RS
An introduction to 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
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
Server-sent events
JavaScript Server-sent events client
Summary
Microservices Development with Java EE
Introduction to microservices
Advantages of a microservices architecture
Disadvantages of a microservices architecture
Microservices and Java EE
Developing microservices using Java EE
Developing microservices client code
The controller service
Summary
Web Services with JAX-WS
Developing web services with JAX-WS
Developing a web service client
Sending attachments to web services
Exposing EJBs as web services
EJB web service clients
Summary
Servlet Development and Deployment
What is a servlet?
Writing our first servlet
Testing the web application
Processing HTML forms
Request forwarding and response redirection
Request forwarding
Response redirection
Persisting application data across requests
Passing initialization parameters to a servlet via annotations
Servlet filters
Servlet listeners
Pluggability
Configuring web applications programmatically
Asynchronous processing
HTTP/2 server push support
Summary
Configuring and Deploying to GlassFish
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 data sources
Setting JMS resources
Setting up a JMS connection factory
Setting up a JMS message queue
Setting up a JMS message topic
Configuring durable subscribers
Summary
← Prev
Back
Next →
← Prev
Back
Next →