look at the testcases in the source. many 'examples' of these kinds of things View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4178693#4178693 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4178693