Hi,

In my application it's very likely that two or more entity beans with the same 
primary key (a string) get persisted at the same time. If that happens a 
"duplicate key" exception is raised and the the current transaction is being 
rolled back.

The problem is that it does not seem to be possible to recover from this error. 
Trying to catch the exception still leaves the transaction invalid. How can I 
make sure that I catch this kind of duplicate key exception without the current 
transaction being rolled back, when I call entityManager.persit(myEntityBean) 
???

Toni

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4085756#4085756

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4085756
_______________________________________________
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to