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

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 f...

Descripción completa

Detalles Bibliográficos
Otros Autores: Heffelfinger, David R., author (author)
Formato: Libro electrónico
Idioma:Inglés
Publicado: Birmingham, England ; Mumbai, [India] : Packt 2018.
Edición:1st edition
Materias:
Ver en Biblioteca Universitat Ramon Llull:https://discovery.url.edu/permalink/34CSUC_URL/1im36ta/alma991009630076006719
Tabla de Contenidos:
  • 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
  • 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
  • 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
  • Summary
  • 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
  • Summary
  • Chapter 5: 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
  • 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
  • Summary
  • 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
  • Summary
  • 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
  • Summary
  • 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
  • Summary
  • 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
  • Summary
  • 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
  • Summary
  • 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
  • Summary
  • 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
  • Summary
  • 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
  • Summary
  • Index.