users@glassfish.java.net

Re: Exceptions and Transactions

From: <glassfish_at_javadesktop.org>
Date: Wed, 09 Apr 2008 09:11:01 PDT

Update...

I've come a little bit further. However, there are some things that doesn't make sense. I got the desired behavior by using the entitymanager directly and not a custom get method to get my entity. I was then able to catch the entitynotfoundexception without getting a rollback. Are transaction set to rollback first when an entire method fails and not within a method perhaps?
[Message sent by forum member 'woel' (woel)]

http://forums.java.net/jive/thread.jspa?messageID=268374