How to run NodeJS on Openshift

NodeJS provides an event-driven and asynchronous platform for server-side JavaScript. In this tutorial we will learn how to create and deploy a minimal Node application into Openshift. NodeJS Overview Node.js is an open-source, server-side JavaScript runtime environment that allows developers to execute JavaScript code outside of a web browser. It is known for its non-blocking, … Read more

How to configure Keycloak Hostname

This article describes how to configure the hostname for the Keycloak server. By default, the hostname is the value of the hostname option in the Keycloak configuration file. However, you can set a different hostname for the Keycloak server using the hostname-admin or hostname-admin-url options.

Read more

Designing Quarkus Front-Ends with Vaadin made easy

Vaadin Flow provides a comprehensive set of UI components and tools for creating rich and interactive user interfaces, while Quarkus offers a lightweight and efficient Java framework for developing cloud-native applications. In this article, we will explore how to combine the strengths of Vaadin and Quarkus to build web applications with ease.

Read more

Java 21 Unnamed Classes and Instance Main Methods

Java 21 introduces two language core features: Unnamed Java Classes and a new launch protocol which allows running Java classes in a simpler format. In this article we will cover in detail these new features explaining how they can simplify your daily Java coding.

Read more

JUnit 5 : Step-by-step Tutorial

JUnit 5 is a powerful testing framework for Java developers, allowing you to write and run repeatable, automated tests for your code. With its clear and expressive syntax, JUnit 5 makes it easy to write tests for a wide range of scenarios and use cases, from simple unit tests to complex integration tests. In this beginner’s tutorial, we’ll cover the basics of JUnit 5 and walk through the steps of writing and running your first test.

Read more

Solving “SLF4J: Failed to load class ‘org.slf4j.impl.StaticLoggerBinder'” Error

The error message “SLF4J: Failed to load class ‘org.slf4j.impl.StaticLoggerBinder‘” commonly occurs in Java applications when the Simple Logging Facade for Java (SLF4J) framework cannot find an appropriate implementation for the logging system. This error can be frustrating, but it’s relatively straightforward to resolve by adding the necessary SLF4J dependencies to your project. In this tutorial, we’ll walk you through the steps to fix this error.

Read more

Quarkus Transaction Timeout configuration

Quarkus is a popular framework for building efficient and scalable Java applications. One critical aspect of application development is managing transactions, and Quarkus provides flexible ways to configure transaction timeouts. In this article, we’ll explore how to configure transaction timeouts in Quarkus. Default Transaction Timeout The Narayana JTA transaction manager lets you coordinate and expose … Read more

How to set the Boolean default to true in JPA?

Java Persistence API (JPA) is a widely used technology for object-relational mapping in Java applications. While mapping Java objects to database tables, developers often need to set default values for certain attributes, such as boolean fields. In this article, we will explore different approaches to setting default values for boolean fields in JPA entities.

Read more

Categories jpa