Java EE 8 application development : develop enterprise applications using the latest versions of CDI, JAX-RS, JSON-B, JPA, Security, and more /
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. The book will cover the latest changes to the Java EE specification and turn non...
Clasificación: | Libro Electrónico |
---|---|
Autor principal: | |
Formato: | Electrónico eBook |
Idioma: | Inglés |
Publicado: |
Birmingham, UK :
Packt Publishing,
2017.
|
Temas: | |
Acceso en línea: | Texto completo Texto completo |
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.