In this first tutorial about Virtual Threads Mastering Virtual Threads: A Comprehensive Tutorial , we have covered the basics of Virtual Threads. In this article we will learn how Quarkus simplifies the implementation and debugging of Virtual Threads in your application through the @RunOnVirtualThread annotation.
F.Marchioni
Why JUnit5 Tests are not running? [Solved]
So your JUnit 5 Jupiter Tests are not running in Maven ? no panic! This tutorial will provide all the checks you need to apply to your Maven project to unlock your JUnit 5 test execution.
Just: a tool to store and execute your project commands
“Just” (or “Justfile”) is a handy command-line tool that simplifies the execution of project-specific commands tasks. In this tutorial, we’ll explore why and how to use “Just” to enhance your day-by-day command line tasks.
Primefaces TabView example
The PrimeFaces tabView component offers an intuitive way to present multiple content sections, making it ideal for showcasing distinct product categories within an application. In this tutorial, we’ll leverage the tabView component to display three different product categories, each represented by a separate tab.
How to extract a Thread Dump from an Heap Dump
To troubleshoot a Java application it is common to analyze both Heap Dumps and Thread Dumps. In this article we will learn how to extract a Thread dump from an Heap Dump with some freely available tools like VisualVM.
How to generate an Heap Dump in Java
A heap dump is a snapshot of the Java Virtual Machine’s memory, capturing the state of objects and their relationships. Analyzing heap dumps aids in diagnosing memory-related issues, identifying memory leaks, and optimizing application performance. Let’s explore five different methods to generate a heap dump in Java. 1. Using jmap Command-Line Tool Step 1: Identify … Read more
Primefaces Dialog example
The PrimeFaces library offers powerful components to enrich JavaServer Faces (JSF) applications. One such component, the PrimeFaces dialog, enables the creation of dynamic, interactive dialog boxes. In this tutorial, we’ll explore how to implement a PrimeFaces dialog within a JSF application to enhance user interactions. Prerequisites Before diving in, ensure you have the following: Step … Read more
Mastering Virtual Threads: A Comprehensive Tutorial
Virtual threads, also known as project Loom, are a new feature available in Java 21 that aims to provide lightweight, efficient, and scalable concurrency. They are designed to improve the performance and efficiency of concurrent applications by reducing the overhead associated with traditional thread-based concurrency. At the same time, they allow write asynchronous code in a much simpler way than reactive programming.
Maven: Bundling Dependencies Into Executable JARs
Crafting Java applications often involves managing dependencies efficiently, especially when distributing projects. Maven, a powerful build automation tool, offers a seamless solution to package all their dependencies into a single, easy-to-distribute JAR file through the Maven Assembly Plugin. Streamlining Dependency Bundling The Maven Assembly Plugin streamlines the process of assembling a project’s dependencies into an … Read more
REST Services cURL cheatsheet
Explore this comprehensive cheatsheet tailored for REST developers seeking a powerful yet straightforward testing tool for their REST services. Discover essential commands and options that elevate your testing capabilities using a versatile tool like curl. Whether you’re a seasoned developer or just getting started, this cheatsheet provides valuable insights to streamline your REST API testing workflow.