Posts

puppet-software

Model-Driven Infrastructure for Java Projects

,
Java software-development projects are our daily business. For us it's a common task to setup different environments for dealing with the specific needs of our customers. While we treat every customer individually we want to keep setup time…
jooq logohttp://www.jooq.org

Using jOOQ with Spring Transactions

Update 10.02.2014: Recently, Lukas from the jOOQ development team has created a sample GitHub project on how to set Spring + Guice up. Please, refer comments. Recently, we decided to introduce jOOQ to our project. Mostly,…
grails framework

Groovy meta-programming and Grails Artefact-API

The list of transient property names in Grails domain-classes can get quite long in bigger setups. Also often multiple domain-classes share the same transient references so there are many places to keep synced when refactoring or extending. An…
cloud

IllegalStateException in Amazon SDK for Java

,
In one of our projects we need to communicate with Amazon S3. We use the SDK for Java provided by Amazon itself. The library incorporates Apache HttpComponents for managing HTTP and associated protocols. We noticed there was an issue…
grails framework

Groovy XmlSlurper for HTML Parsing

,
Very common task: you need to parse XML. When using groovy there is groovy.util.XmlSlurper for that. We know that HTML is just a special XML - but when you have to parse from online ressources you have to assume that it's never well-formed.…
grails framework

Grails Mail-Plugin and Custom EmailerService

,
Just had an old project that got both Grails Mail-plugin installed and also a custom EmailerService implemented. Problem was that both approaches are configuring a org.springframework.mail.javamail.JavaMailSenderImpl in two…
grails framework

Using Grails console-plugin to Interactively Evict Hibernate’s Second Level Cache

It can be very handy to use Grails console-plugin to investigate database-cache-related issues. For instance in a case where everything works as expected but still a certain value is not displayed on a view - the reason can be that…
Software Modernisation

Application-Modernization with JMockit and JUnit

, , ,
When working with legacy-code it is often a good strategy to start increasing test-coverage. But writing tests without changing the legacy-code seems difficult to achieve in the most cases. Often it is enough to execute internal modules in isolation…