The code you just wrote will work, AFAIK. Did you try it? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4020350#4020350 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4020350