I´m sorry I made an other mistake. the query in my first posting works too View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4022749#4022749 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4022749