Category: Coding How-to

A Java alternative to import.sql using ApplicationListener

I’ve long been using a useful feature in Hibernate – import.sql files, which can fill your application at setup with development data. As the name suggests, however, this requires the execution of an SQL file. Clunky generating tools notwithstanding, this requires manual work. Refactoring becomes more difficult, it’s tricky to generate random data, and so

Lessons learned – Memory leak in webservices with JAXB

After a particularly bad performance day, we took a memory dump from our systems. It seemed the garbage collection seemed to work overtime and had difficulty cleaning up after itself. We, as such, suspected a memory leak somewhere in our code. We bumped into the following code:

Now, after reading the documentation surrounding JAXB