efficient examples in java j2ee