Armel Soro's blog

Thoughts, stories and ideas on technology.

jmx, jvm, java, logging, logback, mbean, monitoring, slf4j

Changing the logging level of a running JVM application with jmxterm and Logback, without any downtime

We are going to see how to change the logging level of a running JVM application with jmxterm and Logback, without any application downtime
Armel Soro
Armel Soro
4 min read
Feb 14 2019
graalvm, graal, jpa, java, ruby, native-image, jit, aot, jvm, jdk

GraalVM with JPA-based applications (Part 1)

The goal of this blog post is to go beyond the basic HelloWorld program, and see how we can leverage GraalVM against a sample real-world JPA-based application, able to interact with a database. We will walk through what can be done along with the potential limitations.
Armel Soro
Armel Soro
6 min read
Jan 11 2019
code, ghost, blog, highlighting, prism, prismjs, cdn, dart, syntax

Adding Code Syntax Highlighting to a Ghost Blog with Prism.js

Ghost [] is an awesome and user-friendly Open-Source platform for blogging. But by default, it does not support syntax highlighting, which may not be very practical if you happen to add code snippets to your posts. Thankfully, Ghost is very easy to customize in different ways, and one way we are going to explore here is via Code Injection [], as in use throughout my own blog. Ghost's Code Injection feature allows to add custom CSS st
Armel Soro
Armel Soro
3 min read
Dec 13 2018
jpa, datanucleus, enhancement, gradle, weaving, oss

Announcing an unofficial DataNucleus Gradle Plugin

Following my previous article [] on JPA enhancement in general and particularly how to perform build-time enhancement / weaving using DataNucleus [] and Gradle [] Ant Tasks, a promise is a promise :). I am excited to announce datanucleus-gradle-plugin [], an open-source plugin for Gradle-based projects. It aims at providing the same set of capabiliti
Armel Soro
Armel Soro
2 min read
Nov 11 2018
jpa, datanucleus, enhancement, hibernate, eclipselink, gradle, weaving

DataNucleus JPA Enhancement with Gradle

A notable behavior of JPA providers is to enhance JPA classes, by modifying their bytecode to add few capabilities. DataNucleus (DN) currently provides a Maven Plugin for calling its Enhancer. This article walks through calling DN Enhancer in a Gradle build script in a very efficient way.
Armel Soro
Armel Soro
5 min read
Oct 29 2018
junit, tests, postgresql, h2, hsqldb, java, spring

Running Java Integration Tests against a PostgreSQL Embedded database

Today, I'm going to walk you through running integration tests on the JVM against a real production-like PostgreSQL database. All without losing in terms of overall testing time or performance (especially when you have a database with hundreds of tables). In-memory databases (e.g., H2 [], HSQLDB [], SQLite [], ...) are very often used as drop-in replacements when running integration tests. This is ge
Armel Soro
Armel Soro
8 min read
Sep 28 2018