sebastiandaschner blog


Prometheus with Java EE & MicroProfile Metrics (Video)

friday, february 02, 2018

I have recorded a video in which I show how to realize business metrics by integrating Prometheus using Java EE and MicroProfile Metrics on OpenLiberty.
read more

PostgreSQL on Open Liberty

sunday, january 28, 2018

Open Liberty is an interesting new OSS Java EE application server that originated from WebSphere Liberty. You can configure Open Liberty to use PostgreSQL as its default data source as follows:
read more

EnumSet for enum collections

friday, january 19, 2018

In the last blog post we discovered EnumMaps for mappings with enum keys. You might have observed that there is also a specialized Set that is optimized for enums: EnumSet.
read more

Mapping enum keys with EnumMaps

friday, january 19, 2018

Here’s a type that has been around in the JDK for a while and that comes in handy when we want to define maps with enum types as keys: An EnumMap is a such as specialized Map.
read more

Continuous Delivery video course

wednesday, january 17, 2018

Continuous Delivery is about shipping software with fast pace, confidence and quality. Most of the software projects I support as a consultant don’t implement a full Continuous Delivery pipeline (yet). I created a video course that aims to tackle this situation:
read more

Write custom AssertJ assertions

monday, january 01, 2018

AssertJ is an alternative matching library to the widely used Hamcrest matchers. For my own projects I in fact have changed to solely use AssertJ — I just find the fluid interfaces and extensibility quite appealing.
read more

Transactional exception handling in CDI

monday, january 01, 2018

In Java EE, exceptions that are raised during the execution of a transactional business method cause the transaction to rollback. However, this is only the case for system exceptions, that is, runtime exceptions, which are not declared in the method signature.
read more

Caching method results with JCache

sunday, december 24, 2017

In JCache there is a handy functionality that transparently caches the result of methods. You can annotate methods of managed beans with @CacheResult and the result of the first call will be returned again without calling the actual method a second time.
read more

All blog entries