blog

#HOWTO: JPA integration tests with Java EE

Writing good unit tests for your central business logic is essential for the speed of your development and a confident deployment to production. But there are also parts of your application where plain unit tests with mocking frameworks like Mockito aren’t that useful or result in a “mocking-hell”. The interaction of your application with your database is…

Read More

#REVIEW: Baeldung’s REST with Spring masterclass

Recently Baeldung announced to increase the price of his REST with Spring’s course from $ 249 to $ 299. As I am (or was) a big fan of Baeldung because of his free content about Java & Spring. I purchased the course because I thought I get high-quality and up-to-date content for this amount of money. In…

Read More

#HOWTO: Convert .docx files to .pdf files format loss-free

Recently I had to convert generated .docx files to .pdf files for a more convenient distribution. The Word documents contained some custom formatting and additional pictures. I tried several Java libraries for doing this job (Docx4j, XDocReport and Apache POI) but all of them couldn’t generate the output I got from manually converting the .docx files with Microsoft Word’s native…

Read More

#HOWTO: Generate documents from Word templates with Docx4j on Wildfly 14

Lately, I had the requirement to generate Word documents from specific templates and fill them dynamically with data. For this task, I compared the following Java libraries: Apache POI, iText PDF, Docx4j and XDocreports.  I compared them while using the following characteristics: Possibility to replace variables, amount of additional dependencies, lines of code to generate…

Read More

#HOWTO: Simple JMS application with the embedded messaging engine in Open Liberty

For messaging, I have always thought of Apache Kafka as the central solution for messaging. While learning more about Java EE I came along the Java Message Service (JMS) specification and gave it a try. In addition, I wanted to learn more about the JMS capabilities of the Open Liberty application server. In this blog post, I’ll show you how to create a…

Read More

#HOWTO: Simple CRUD table with JSF 2.3 and PrimeFaces

As my last blog post about a short intro to JavaServer Faces 2.3 got a lot of attention (my tweet got even retweeted by the Java EE Guardian’s twitter page (@javaee_guardian) I want to continue to write about JSF. Today I’ll cover one of the most common use cases for developing web-based applications: displaying/inserting/updating/deleting data…

Read More

#WHATIS? JavaServer Faces. An introduction to JSF 2.3

Scrolling through my news feed on Twitter I get flooded with new releases of npm modules and more and more blog articles about server-side rendering technologies for the latest Single Page Application frameworks like Angular, React. The following tweet summarized my current feelings: As I personally really like React and used it in the past for several projects,…

Read More

#REVIEW: Java by Comparison

In today’s post, I want to review the latest technical Java book I read. I came across the book “Java by Comparison” by Simon Harrer, Jörg Lenhard, and Linus Dietz while I was reading Venkat Subramaniam’s blog. Venkat did the foreword of this book and as I am a fan of him, I instantly bought the book….

Read More

#REVIEW: My first Hackathon

From July 10th to the 11th I took part in the Hackathon HACK|BAY which was organized by the tech incubator Zollhof in Nuernberg. Even if I participated in several coding challenges and a company internal Hackathon, this was my first Hackathon with a jury and multiple competing teams. The event was sponsored by several local…

Read More