Example Code for JBoss Applicationserver