I believe there is no API function. But you can easily do this with an HQL query. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4067430#4067430 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4067430