Author Archives: Steffen Schäfer

Handling money and currencies in Java with JSR 354

Back in May 2015, JSR 354 featuring an API for handling monetary values and currencies was finally released. The specification consists of the following things: An API for handling e. g. monetary amounts and currencies SPIs to support interchangeable implementations … Continue reading

Posted in Java Basics, Java EE | Tagged , | 1 Comment

Cross origin XMLHttpRequests with CORS

The communication of JavaScript applications with a backend system is in most cases based on XMLHttpRequests. This allows applications to load/save/… data without navigating to another page. As most developers know, this kind of communication has a big limitation caused … Continue reading

Posted in Web as a Platform | Tagged , , , | Leave a comment

Log4j 2 configuration depending on environment

In a recent project, we used Log4j 2 as a backend for slf4j. Logging is configured differently for the local application start than for production. To do this, we used to have one configuration per environment and a piece of … Continue reading

Posted in Did you know? | Tagged , , , | 4 Comments

Spring Session 1.0 released

A few days ago, Spring Session 1.0 has been released. According to the project page, it provides the following functionality: API and implementations (i.e. Redis) for managing a user’s session HttpSession – allows replacing the HttpSession in an application container … Continue reading

Posted in Spring Universe | Tagged , , , , , | Leave a comment

Customizing GWT’s browser detection

In a recent project, we experienced the phenomenon that the GWT application was broken when started in Internet Explorer 11 embedded in a specific rich client application. It turned out that the user agent string sent by the browser was … Continue reading

Posted in Java Web Frameworks | Tagged , , | 1 Comment

TCP and HTTP for web developers

When developing web applications, you can do some mistakes related to basic peculiarities of TCP and HTTP. The post explains some of the pain points and shows approaches to avoid such problems.

Posted in Web as a Platform | Tagged , , , , , | Leave a comment

Gradle 2.1 released with new plugin portal

Gradle 2.1 has been release recently. The biggest change is the addition of the new plugin portal. But there are far more interesting changes…

Posted in Build, config and deploy | Tagged , , , | Leave a comment