Java Structured Concurrency in practice

Structured concurrency (JEP 453) is a method of organizing concurrent programming in a way that maintains the relationship between tasks and subtasks. This approach aims to make concurrent code more readable, maintainable, and reliable. In structured concurrency, tasks and their subtasks have well-defined entry and exit points. This creates a clear structure similar to how structured programming works in a single thread.

Read more

How to create an EJB Startup Service

In this tutorial, we’ll explore how to use the @Startup and @Singleton annotations in Jakarta EE applications. These annotations allow us to initialize components during application startup and ensure that they are available throughout the application’s lifecycle. We’ll cover the basics of each annotation, how to use them together, and provide examples to illustrate their usage.

Read more

How to Configure Level 2 Cache in JPA Applications

In this updated article we will learn how to configure Hibernate Second Level Caches with Jakarta Persistence API to optimize database interactions. The primary objective is to minimize the frequency of database hits by strategically implementing caching mechanisms for both entities and queries within the context of the Jakarta Persistence API. Besides, we will also learn how to monitor Caches using WildFly management tools.

Read more

Ansible Playbook Example for beginners

Ansible is a powerful open-source automation tool that allows you to configure and manage servers. Playbooks are a key component of Ansible, allowing you to define tasks and configurations in a declarative way. In this tutorial, we will create a basic Ansible playbook example to demonstrate its usage. Our playbook will create a text file … Read more

How to store JSON Data with JPA and Hibernate

Several databases provide varying levels of support for JSON data, including storage, indexing, querying, and manipulation capabilities. In this article we will explore how to insert and fetch JSON Data using Jakarta Persistence API and WildFly.

Read more

Categories jpa

JBang Cheatsheet (2024) for Java Developers

Welcome to the JBang Cheatsheet, your comprehensive guide to mastering this powerful tool for rapid Java development. JBang eliminates the need for complex setup and repetitive configuration, allowing you to focus on writing code and exploring new Java projects. Whether you’re a seasoned Java developer or just starting out, this cheatsheet will equip you with the knowledge and skills to leverage JBang‘s capabilities and accelerate your Java development journey.

Read more

Quarkus vs WildFly Application Server

This article provides a comparison of the features of two popular Java Enterprise Runtimes: WildFly Application Server and Quarkus framework. While both offer robust support for Java applications, their distinct approaches to development, deployment, and scalability cater to diverse use cases. Comparing Quarkus and WildFly. Fair comparison ? Firslty a disclaimer note: Comparing WildFly, a … Read more