Blog:

Fly.io and Neon: The Perfect Combination to Run Your Java Applications

With the right tools, deploying and managing Java applications can be straightforward and efficient. This blog post will explore how Fly.io and Neon make a perfect combination for running Java apps.
Fly.io offers an easy-to-use platform for deploying your applications globally, while Neon provides a modern, serverless PostgreSQL database that works seamlessly with Java.

With the right tools, deploying and managing Java applications can be straightforward and efficient. This blog post will explore how Fly.io and Neon .....

16.07.2024

The Best Way to Handle Phone Numbers

Processing phone numbers seems complicated at first glance because of the many different formats. In this post, I’ll show you that with libphonenumber, it becomes child’s play. I’ll also recommend how to store the phone number in the database.

Processing phone numbers seems complicated at first glance because of the many different formats. In this post, I'll show you that with .....

19.06.2024

Connect to Google Cloud SQL from Java

Recently, I migrated my application to Google Cloud Run and Cloud SQL, and I struggled with connecting to the database. So, I’d like to share one way to achieve the connection.

Recently, I migrated my application to Google Cloud Run and Cloud SQL, and I struggled with connecting to the database. So, I'd like to share one way .....

18.06.2024

Hibernate Schema-based Multi-Tenancy using StatementInspector

When using schema-based multi-tenancy with Hibernate, a simple way to define the schema is using a MultiTenantConnectionProvider where we call SET SCHEMA on the connection. However, this approach does not work with certain databases like MS SQL.

When using schema-based multi-tenancy with Hibernate, a simple way to define the schema is using a MultiTenantConnectionProvider where we call SET .....

08.01.2024

How do you get a Spring Bean without Dependency Injection?

Sometimes, you want to use a Spring Bean in a class that is not a Spring Bean, but then dependency injection doesn’t work. This article shows a way to get around that limitation.

Sometimes, you want to use a Spring Bean in a class that is not a Spring Bean, but then dependency injection doesn't work. This article shows a way to.....

04.01.2024

2023 – What a Year!

I’ve been a software developer since 1995, but 2023 was by far the most exciting year of my IT career. Let’s look back on projects, conferences, and recognitions and an outlook to 2024.

I've been a software developer since 1995, but 2023 was by far the most exciting year of my IT career. Let's look back on projects, conferences, and .....

27.12.2023

Durable Subscription with JMS and Spring Boot

When using the publish-subscribe domain with JMS we often want to use durable subscriptions. But how can this be done with Spring Boot?

When using the publish-subscribe domain with JMS we often want to use durable subscriptions. But how can this be done with Spring Boot?.....

12.12.2023

Testing Spring Boot JMS with ActiveMQ Artemis and Testcontainers

Currently, I’m teaching JMS with Spring Boot at the University of Applied Science in Bern, Switzerland.
We use Apache ActiveMQ Artemis as the JMS message broker. But how can we test our Spring Boot application?

Currently, I'm teaching JMS with Spring Boot at the University of Applied Science in Bern, Switzerland. We use Apache ActiveMQ Artemis as the JMS .....

09.12.2023

Resolving SonarQube Rule S2699 with Karibu Testing Assertions 

I’m using Karibu Testing for testing my Vaadin applications which work perfectly. But recently, I encountered a problem when I analyzed my code with SonarQube. Karibu Testing’s assertion methods are not recognized by SonarQube.

I'm using Karibu Testing for testing my Vaadin applications which work perfectly. But recently, I encountered a problem when I analyzed my code with .....

10.06.2023

Spring boot, angular and JWT authentication

In preparation for a potential customer project, I had to refresh my knowledge of Angular. The best way to do that is to create a small demo application. I used Angular 15 with Spring Boot 3 and JWT to secure the REST API. Often an authorization server like Keycloak is used for authorization and token generation. However, I tried to keep the example as simple as possible and generate the JWT as part of the application.

In preparation for a potential customer project, I had to refresh my knowledge of Angular. The best way to do that is to create a small demo .....

19.01.2023