Working version on jboss 6