Your original post is very clear. Just look at docs, the testcases and examples.... no need to do it like this, just use the api View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4059600#4059600 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4059600