Using Java as scripting language has become a popular option in the last few years thanks to the JShell tool. In this article we will learn how the JBang scripting tool can take your Java scripting power at another level.
F.Marchioni
Jakarta EE vs Java EE vs EE4j
Jakarta EE, Java EE, and EE4J are all related to the Java Enterprise Edition (EE) platform, but they represent different stages and developments in the evolution of Java EE. Here’s a comparison between Jakarta EE, Java EE, and EE4J.
Two ways to read a File in a String with Java
Do you need to read a File into a String in Java ? This article will show two simple ways to achieve it. By the end of it, you will also learn the differences between each solution. Solution #1 Use Files.readAllBytes The first solution, which reads a file into an array of Bytes, uses the … Read more
How to use Mockito to supercharge your Java Testing
Mockito is a powerful and easy-to-use mocking framework for Java applications. With Mockito, you can easily create mock objects that simulate the behavior of real objects in your application, without actually invoking their methods. We will show at first how to plug Mockito in JUnit Tests. Then, we will integrate Mockito in Quarkus Tests.
How to disable WildFly clustering at runtime
This tutorial discusses how you can perform cluster maintenance on one or more nodes of your cluster. We will show which approach you can use both in Standalone mode and Domain mode without losing continuity in your services. WildFly cluster maintenance Today I have found an interesting question of StackOverFlow asking how to temporarily remove … Read more
How to change Quarkus default HTTP Port?
Quarkus includes the “undertow” extension which is triggered when you include a JAXRS dependency in your project. We will see in this tutorial which are the most common settings you can apply to a Quarkus application to configure the embedded Undertow server. First of all let’s specify how you can set configuration parameters on Quarkus. … Read more
How to Log the REST Request and Response
This article discusses a simple strategy to debug the Request and Response from a Jakarta EE Rest Service using Filters and CDI annotations.
How to run Artemis MQ as Docker Image
In this tutorial, we will explore how to run Apache Artemis MQ, a high-performance messaging broker, within a Docker container. By containerizing Artemis MQ, you can easily deploy and manage your messaging infrastructure while leveraging the benefits of isolation, scalability, and portability offered by Docker. Let’s dive into the world of containerized messaging with Artemis MQ!
Apache Maven Faqs for Java Developers
Welcome to our tutorial on Apache Maven FAQs! Apache Maven is a popular build automation tool used for Java projects. It helps developers manage project dependencies, build, test, and deploy projects. In this tutorial, we will cover some frequently asked questions about Maven and provide helpful answers and explanations.
How to solve the error “invalid target release: 17”
This article shows how to fix the compilation issue that you can hit when the target Java release specified in your Maven configuration does not match the version of Java installed on your system. For example, your environment uses Java 11 but your Maven configuration requires Java 17.