Look at sample application explained here http://docs.jboss.org/jbossas/jboss4guide/r3/html/ch7.chapt.html#d0e15145 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4057600#4057600 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4057600