If I recall correctly, this discussion has a complete example http://www.jboss.com/index.html?module=bb&op=viewtopic&t=105580 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4120603#4120603 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4120603