Yes, that last code snippet looks correct. Can you explain in more detail whats going wrong with it. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4070019#4070019 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4070019