Category Archives: english

Integrating Flyway with Java EE and using its datasource

Flyway is my favourite tool when it comes to database migrations because its convention over configuration approach makes it fairly easy to use while bootstrapping and configuration is reduced to a minimum. For those of you who don’t know anything about database migration tools (evolutionary database design) in short the concept is to track SQL scripts […]
Also posted in coding, howto, Java, Tech | Tagged , , , , , , | Leave a comment

Dynamic switching dev and prod datasource with maven profiles

Most of the time when you develop an application that uses a database you are likely to use another database for your local development work than what you will use later in production. The main reason for this is that there are databases like H2 which by design are fitting the development situation while they […]
Also posted in coding, Java | Tagged , , , , , , , , , | Comments closed

Apache Shiro part 2 – securing a JSF Java EE 7 application

In the first part I described why I chose Apache Shiro as an Authentication framework. In this part I will describe the simplest working solution to secure a Java EE7 application with JSF/Primefaces frontend. To be honest I wont use much of Primefaces in this sample but the application for which I did this research […]
Also posted in coding, Java, Security | Tagged , , , , , , , , , | Leave a comment

Don’t rely on Java finalizers

Recently I was facing a problem where a Java application should persist a part of its state when it was closed. This was already implemented but seemed to work just unreliably and it was not clearly reproducible when it worked properly and when it failed. After analyzing the existing source code I figured out that […]
Also posted in coding, Java | Tagged , , | Leave a comment

Apple MacBook Pro late 2016

This blog should not transform to yet another Apple blog but as a Java Developer the Mac is my preferred platform which I use daily. This is the reason why I tend to take a closer look when Apple shows the next generation of macOS or Mac hardware even if I’m not buying a new […]
Also posted in Apple, Tech | Tagged , , , , | Leave a comment