Here's an alternative:
Instead of trying to ignore the exception, try calling em.contains(...) and if that
returns false, then execute em.persist(...).
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4047060#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...