Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Jakarta EE Application Development

You're reading from   Jakarta EE Application Development Build enterprise applications with Jakarta CDI, RESTful web services, JSON Binding, persistence, and security

Arrow left icon
Product type Paperback
Published in Feb 2024
Publisher Packt
ISBN-13 9781835085264
Length 316 pages
Edition 2nd Edition
Languages
Arrow right icon
Author (1):
Arrow left icon
David R. Heffelfinger David R. Heffelfinger
Author Profile Icon David R. Heffelfinger
David R. Heffelfinger
Arrow right icon
View More author details
Toc

Table of Contents (18) Chapters Close

Preface 1. Chapter 1: Introduction to Jakarta EE FREE CHAPTER 2. Chapter 2: Contexts and Dependency Injection 3. Chapter 3: Jakarta RESTful Web Services 4. Chapter 4: JSON Processing and JSON Binding 5. Chapter 5: Microservices Development with Jakarta EE 6. Chapter 6: Jakarta Faces 7. Chapter 7: Additional Jakarta Faces Features 8. Chapter 8: Object Relational Mapping with Jakarta Persistence 9. Chapter 9: WebSockets 10. Chapter 10: Securing Jakarta EE Applications 11. Chapter 11: Servlet Development and Deployment 12. Chapter 12: Jakarta Enterprise Beans 13. Chapter 13: Jakarta Messaging 14. Chapter 14: Web Services with Jakarta XML Web Services 15. Chapter 15: Putting it All Together 16. Index 17. Other Books You May Enjoy

Conventions used

There are a number of text conventions used throughout this book.

Code in text: Indicates code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles. Here is an example: “As can be seen in the example, we generate an instance of JsonObject by invoking the add() method on an instance of JsonObjectBuilder.”

A block of code is set as follows:

<!DOCTYPE html>
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html;
      charset=UTF-8">
    <title>Login Error</title>
  </head>
  <body>
    There was an error logging in.
    <br />
    <a href="login.html">Try again</a>
  </body>
</html>

When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:

package com.ensode.jakartaeebook.security.basicauthexample;
//imports omitted for brevity
@BasicAuthenticationMechanismDefinition
@WebServlet(name = "SecuredServlet", urlPatterns = {"/securedServlet"})
@ServletSecurity(
        @HttpConstraint(rolesAllowed = "admin"))
public class SecuredServlet extends HttpServlet {
  @Override
  protected void doGet(HttpServletRequest request,
    HttpServletResponse response) throws ServletException, IOException {
    response.getOutputStream().print(
      "Congratulations, login successful.");
  }
}

Any command-line input or output is written as follows:

appclient -client simplesessionbeanclient.jar

Bold: Indicates a new term, an important word, or words that you see onscreen. For instance, words in menus or dialog boxes appear in bold. Here is an example: “Now that we have created a customer, our Customer List page displays a data table listing the customer we just created.”

Tips or important notes

Appear like this.

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image