My Account Log in

3 options

Java EE 8 application development : develop enterprise applications using the latest versions of CDI, JAX-RS, JSON-B, JPA, security, and more / David R. Heffelfinger.

EBSCOhost Academic eBook Collection (North America) Available online

View online

Ebook Central College Complete Available online

View online

O'Reilly Online Learning: Academic/Public Library Edition Available online

View online
Format:
Book
Author/Creator:
Heffelfinger, David R., author.
Language:
English
Subjects (All):
Java (Computer program language).
Physical Description:
1 online resource (1 volume) : illustrations
Edition:
1st edition
Other Title:
Java Enterprise Edition eight application development
Place of Publication:
Birmingham, England ; Mumbai, [India] : Packt, 2018.
System Details:
text file
Summary:
Develop Enterprise Java applications compliant with the latest version of the Java EE specification About This Book This book covers all of the major Java EE 8 APIs and includes new additions such as enhanced Security, JSON-B Processing, and more Learn additional Java EE APIs, such as the Java API for Websocket and the Java Message Service (JMS) Develop applications by taking advantage of the latest versions of CDI, Security, Servlets, and JSF and other Java EE specifications Who This Book Is For If you are a Java developer who wants to become proficient with Java EE 8, this book is ideal for you. You are expected to have some experience with Java and to have developed and deployed applications in the past, but you don't need any previous knowledge of Java EE. What You Will Learn Develop and deploy Java EE applications Embrace the latest additions to the Contexts and Dependency Injection (CDI) specification to develop Java EE applications Develop web-based applications by utilizing the latest version of JavaServer Faces, JSF 2.3. Understand the steps needed to process JSON data with JSON-P and the new JSON-B Java EE API Implement RESTful web services using the new JAX-RS 2.1 API, which also includes support for Server-Sent Events (SSE) and the new reactive client API In Detail Java EE is an Enterprise Java standard. Applications written to comply with the Java EE specification do not tie developers to a specific vendor; instead they can be deployed to any Java EE compliant application server. With this book, you’ll get all the tools and techniques you need to build robust and scalable applications in Java EE 8. This book covers all the major Java EE 8 APIs including JSF 2.3, Enterprise JavaBeans (EJB) 3.2, Contexts and Dependency Injection (CDI) 2.0, the Java API for WebSockets, JAX-RS 2.1, Servlet 4.0, and more. The book begins by introducing you to Java EE 8 application development and goes on to cover all the major Java EE 8 APIs. It goes beyond the basics to develop Java EE applications that can be deployed to any Java EE 8 compliant application server. It also introduces advanced topics such as JSON-P and JSON-B, the Java APIs for JSON processing, and the Java API for JSON binding. These topics dive deep, explaining how the two APIs (the Model API and the Streaming API) are used to process JSON data. Moving on, we cover additional Java EE APIs, such as the Java API for Websocket and the Java Message Service (JMS), which allows loosely cou...
Contents:
Cover
Copyright
Credits
About the Author
About the Reviewers
www.PacktPub.com
Customer Feedback
Table of Contents
Preface
Chapter 1: 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
Chapter 2: JavaServer Faces
Introducing JSF
Facelets
Optional faces-config.xml
Standard resource locations
Developing our first JSF application
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
Chapter 3: 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
Chapter 4: 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
Chapter 5: Contexts and Dependency Injection
Dependency injection
Qualifiers
CDI events
Firing CDI events
Handling CDI events
Asynchronous events
Event ordering
Chapter 6: 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
Chapter 7: 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
Chapter 8: 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
Chapter 9: 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
Chapter 10: 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
Chapter 11: 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
Chapter 12: 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
Chapter 13: 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
Appendix: 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
Index.
Notes:
Description based on online resource; title from PDF title page (EBC, viewed January 11, 2018).
Includes index.
ISBN:
9781523125388
1523125381
9781788297332
1788297334
OCLC:
1020288677

The Penn Libraries is committed to describing library materials using current, accurate, and responsible language. If you discover outdated or inaccurate language, please fill out this feedback form to report it and suggest alternative language.

My Account

Shelf Request an item Bookmarks Fines and fees Settings

Guides

Using the Library Catalog Using Articles+ Library Account