This content has been marked as final.
Show 3 replies
-
1. Re: CMP with postgres not rolling back!
raja05 Aug 20, 2003 3:06 PM (in response to mjremijan)Just to make sure, you arent throwing an application exception, are you?
-
2. Re: CMP with postgres not rolling back!
mjremijan Aug 20, 2003 3:08 PM (in response to mjremijan)I have some additional information. My test was throwing a NamingException. When I changed this to be an EjbException, the data did not commit to the database.
Does the transaction manager only recognize EJBExceptions? -
3. Re: CMP with postgres not rolling back!
raja05 Aug 20, 2003 3:13 PM (in response to mjremijan)Yes, EJBException is a Runtime exception whereas NamingException is a checked one.
IF you are throwing a NamingException, call the setRollbackonly() before throwing the exception.