I've put the code into a git repo: https://github.com/jbossejb3/jboss-ejb3-pub and added some comments to https://github.com/jbossejb3/jboss-ejb3-pub/commit/61acaa038d00e1ceacb100c03842300a5461135d.
Reply to this message by going to Community
Start a new discussion in EJB3 at Community