Configuring WildFly as Reverse Proxy

In this tutorial we will learn how to configure WildFly or JBoss to reverse proxy requests to another application server. We will first discuss the basics of reverse proxying and then we will show the commands to achieve the correct configuration.   Reverse Proxy vs. Forward Proxy Before diving into Undertow’s reverse proxy capabilities, it’s essential … Read more

HTTP Client for Keycloak using OpenID Connect

In modern web applications, authentication and authorization are critical components. Keycloak is a powerful open-source identity and access management solution for modern applications and services. This article will guide you through creating a Java HTTP client to test OpenID Connect token authentication with Keycloak, and we will also demonstrate the equivalent steps using curl. Prerequisites … Read more

How to Map Your DTO Objects with MapStruct

In this tutorial, we will learn how to map your Data Transfer Objects (DTO) using the MapStruct framework and integrate it into a Jakarta EE application. Understanding DTO Objects DTO Objects are used to decouple the database model from the view that is transferred to the client. They are intended to be immutable objects, used … Read more

Categories jpa

Dynamic Queries with Criteria API

The Hibernate Criteria API provides a powerful and flexible way to build dynamic queries in a type-safe manner. This tutorial will guide you through creating dynamic queries using the Criteria API with practical examples.

Read more

Categories jpa

How to use a Datasource in Quarkus

This article will teach you how to use a plain Datasource resource in a Quarkus application. We will create a simple REST Endpoint and inject a Datasource in it to extract the java.sql.Connection object. We will also learn how to configure the Datasource pool size.

Read more

Hibernate dynamic-insert and dynamic-update

In this tutorial, we’ll explore the @org.hibernate.annotations.Entity annotation and specifically focus on its dynamicInsert and dynamicUpdate properties. These properties can be highly useful in optimizing database interactions by preventing unnecessary SQL updates and inserts. 1. Introduction to @Entity with dynamicInsert and dynamicUpdate Hibernate provides some additional features to the standard JPA annotations. One of these … Read more