Groovy meta-programming and Grails Artefact-API
Java CompetenceThe 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…
IllegalStateException in Amazon SDK for Java
Custom Software, Java CompetenceIn 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…
Groovy XmlSlurper for HTML Parsing
Custom Software, Java CompetenceVery 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 Mail-Plugin and Custom EmailerService
Custom Software, Java CompetenceJust 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…
Using Grails console-plugin to Interactively Evict Hibernate’s Second Level Cache
Java CompetenceIt 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…
Application-Modernization with JMockit and JUnit
Custom Software, Java Competence, Outsourcing, Quality and TestWhen 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…