Author Archives: Sebastian Basner

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 | Tagged , , , , , , , , , | 2 Comments

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 | Tagged , , , , , , , , | 1 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 | Tagged , , | Leave a comment

Find and kill a process on a specific port (lsof)

You might all have experienced the situation when you want to start a server either from within your IDE or via the terminal to only get the error that the “port is already in use” and the startup is aborted. This is mostly caused by aborting the server or a crash of the IDE which […]
Posted in Apple, Linux, macOS, Tech, Tools | 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 […]
Posted in Apple, english, Tech | Tagged , , , , | Leave a comment