look at the docs, examples, testcases, search the forum or take a course. This is basic stuff that is well documented View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3976586#3976586 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3976586