[jboss-user] [EJB 3.0] - Re: Transaction annotation - cannot get desired behavior

waynebaylor do-not-reply at jboss.com
Sun May 20 12:03:40 EDT 2007


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#4047060

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4047060



More information about the jboss-user mailing list