TBR Blog

Yet another developer blog!

Again some technical tips, much already exist, but those are the ones I didn't find over the net. Feel free to take advantage of whatever content present on this page,

Good reading!

It is sometimes necessary to compile java code "on the fly", it is possible with the following snippets

Continue reading...

It is necessary to keep track of log traces, without having too big files (matter of transportation, if you communicate with a customer), it is necessary to configure a rolling appender in the logging framework. Here is an example with log4j2

Thanks to this configuration, the file will "roll" (whe...

Continue reading...

When it is needed to build a "fat" jar (a jar that contains all the dependencies tree), it is possible to do it with the maven shade plugin:

            
                org.apache.maven.plugins
                maven-shade-plugin...

Continue reading...

As of 2018 (and from a pretty long time now), SSL security for services is not an option. Beforehand, it was not so easy for a developer to get an ssl-certificate which was valid, it was most often a self-signed certificate which was difficult to use programmatically. Ideed, most languages and frame...

Continue reading...

In order to build a stack that runs on java 6 with major frameworks (and assuming you work with maven), here is my recommended stack :

Framework Version
Spring Batch 3.0.9.RELEASE
Spring Core 4.3.18.RELEASE
Hibernate 4.1.12.Final
Junit 4.12
H2 1.4.191
Log4j2 2.3

Here is...

Continue reading...