Jakarta Application Development: Develop Enterprise applications using the latest versions of CDI, Jakarta RESTful Web Services, Jakarta JSON Binding, Jakarta Persistence, Security, and more, 2nd Edition [2 ed.] 9781835085264

akarta EE stands as a robust standard with multiple implementations, presenting developers with a versatile toolkit for

144 34

English Pages 400 Year 2024

Report DMCA / Copyright

DOWNLOAD EPUB FILE

Table of contents :
Jakarta EE Application Development
Contributors
About the author
About the reviewers
Preface
Who this book is for
What this book covers
To get the most out of this book
Technical requirements
Download the example code files
Conventions used
Get in touch
Share Your Thoughts
Download a free PDF copy of this book
1
Introduction to Jakarta EE
Introduction to Jakarta EE
Contributing to Jakarta EE
Jakarta EE APIs
One standard, multiple implementations
Jakarta EE, Java EE, J2EE, and the Spring Framework
Summary
2
Contexts and Dependency Injection
Named beans
Dependency injection
Qualifiers
CDI bean scopes
CDI events
Firing CDI events
Handling CDI events
Asynchronous events
Event ordering
CDI Lite
Summary
3
Jakarta RESTful Web Services
Introduction to RESTful web services
Developing a simple RESTful web service
Configuring the REST resources path for our application
Developing a RESTful web service client
Seamlessly converting between Java and JSON
Query and path parameters
Query parameters
Path parameters
Server-sent events
Testing server-sent events
Developing a server-sent events client
JavaScript server-sent events client
Summary
4
JSON Processing and JSON Binding
Jakarta JSON Processing
The JSON Processing Model API
The JSON Processing Streaming API
Jakarta JSON Binding
Populating Java objects from JSON with JSON Binding
Generating JSON data from Java objects with JSON Binding
Summary
5
Microservices Development with Jakarta EE
An introduction to microservices
The advantages of a microservices architecture
The disadvantages of a microservices architecture
Microservices and Jakarta EE
Developing microservices using Jakarta EE
Developing microservices client code
The controller service
The persistence service
Summary
6
Jakarta Faces
Introduction to Jakarta Faces
Facelets
Optional faces-config.xml
Standard resource locations
Developing our first Faces application
Facelets
Project stages
Validation
Grouping components
Form submission
Named beans
Static navigation
Dynamic navigation
Custom data validation
Creating custom validators
Validator methods
Customizing default messages
Customizing message styles
Customizing message text
Summary
7
Additional Jakarta Faces Features
Ajax-enabled Faces applications
Jakarta Faces HTML5 support
HTML5-friendly markup
Pass-through attributes
Faces Flows
Faces WebSocket support
Additional Faces component libraries
Summary
8
Object Relational Mapping with Jakarta Persistence
The CUSTOMERDB database
Configuring Jakarta Persistence
Persisting data with Jakarta Persistence
Entity relationships
One-to-one relationships
One-to-many relationships
Many-to-many relationships
Composite primary keys
Jakarta Persistence Query Language
Criteria API
Updating data with the Criteria API
Deleting data with the Criteria API
Bean Validation support
Final notes
Summary
9
WebSockets
Developing WebSocket server endpoints
Developing an annotated WebSocket server endpoint
Developing WebSocket clientsin JavaScript
Developing JavaScript client-side WebSocket code
Developing WebSocket clients in Java
Summary
10
Securing Jakarta 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
11
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
12
Jakarta Enterprise Beans
Session beans
A simple session bean
A more realistic example
Invoking session beans from web applications
Singleton session beans
Asynchronous method calls
Message-driven beans
Transactions in enterprise beans
Container-managed transactions
Bean-managed transactions
Enterprise bean life cycles
Stateful session bean life cycle
Stateless and singleton session bean life cycle
Message-driven bean life cycle
Enterprise bean timer service
Calendar-based enterprise bean timer expressions
Enterprise bean security
Summary
13
Jakarta Messaging
Working with message queues
Sending messages to a message queue
Retrieving messages from a message queue
Browsing message queues
Working with message topics
Sending messages to a message topic
Receiving messages from a message topic
Creating durable subscribers
Summary
14
Web Services with Jakarta XML Web Services
Developing web services with Jakarta XML Web Services
Developing a web service client
Sending attachments to web services
Exposing Enterprise Beans as web services
Enterprise Beans web service clients
Summary
15
Putting it All Together
The sample application
The landing page
Creating customer data
Viewing customer data
Updating customer data
Deleting customer data
Implementing pagination
Summary
Index
Why subscribe?
Other Books You May Enjoy
Packt is searching for authors like you
Share Your Thoughts
Download a free PDF copy of this book

Jakarta Application Development: Develop Enterprise applications using the latest versions of CDI, Jakarta RESTful Web Services, Jakarta JSON Binding, Jakarta Persistence, Security, and more, 2nd Edition [2 ed.]
 9781835085264

  • 0 0 0
  • Like this paper and download? You can publish your own PDF file online for free in a few minutes! Sign Up
Recommend Papers