Tag Archives: java

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 […]
Posted in coding, english, Java | Also 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 […]
Posted in coding, english, Java, Security | Also tagged , , , , , , , , | Leave a comment

Apache Shiro part 1 – selecting a Java security framework

What is Shiro? Apache Shiro is an open source Java security framework which makes authentication, authorization and cryptography very easy to use with a simple and small configuration. It is very portable because of its independence from the used application frameworks and covers all kinds of scenarios from console over desktop client to web applications. […]
Posted in coding, Java, Security, Tools | Also 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 […]
Posted in coding, english, Java | Also tagged , | Leave a comment

Java Forum Nord 2016

Last week (October 20th) I attended the second “Java Forum Nord” in Hannover. The Java Forum is now in its second year but is the evolution of an older and smaller conference in Göttingen (Source Talk Tage). The relocation and renaming of the conference was necessary because it wasn’t possible to attract an audience huge […]
Posted in Allgemein, english, general, Java, Reisebericht, Talks | Also tagged , , , , | Leave a comment