Monthly Archives: April 2011

GORM: Access Properties of Child Object with createAlias()

Use case Imagine we have a GORM class called Book. This class has an associated Author. And now we want to query certain properties of the author, then we have two common possibilities to perform this query: HQL, Hibernate Query

Tagged with: , , ,
Posted in GORM, Grails, Groovy

Late Static Binding in PHP < 5.3

Use case Even though PHP 5.3 is already out since more than one and a half year, a lot of web-hosters still don’t provide this version. In one of my projects I had to deal with the webhoster all-inkl. The

Tagged with: , , , ,
Posted in PHP

Grails: How to access action/controller/param inside a service

Use case Even though a service should be stateless and application-/context-independent, I needed to access the current controller and action from inside a service class. Namely I have a URL-Service, which provides various kinds of dynamic URL methods. One of

Tagged with: , , , ,
Posted in Grails, Groovy, Java

Solving Ubuntu Hibernate/Sleep Performance Issues

Use case On my (K)Ubuntu 10.10 Maverick  I had the problem, that everytime when I choose to suspend (hibernate or sleep) my system, i had to wait almost 5 minutes for using my system again after a reboot. During the reboot

Tagged with: , , , ,
Posted in Linux, Ubuntu

Installing Apache2 and Tomcat6 with mod_jk on Ubuntu 10.10

Use case This brief step-by-step guide tries to explain how to install Tomcat with Apache and mod_jk on an Ubuntu 10.10 system considering following components Apache 2, MySQL 5, PHP 5, PhpMyAdmin, Sun Java JDK 1.6, Tomcat 6.0, Tomcat-Admin, mod_jk

Tagged with: , , , ,
Posted in Java, Uncategorized, Webserver
Archive
Categories