Hi all,
I have the following Problem:
I want a function to rollback everything when the database-part passes, but
the email-sending throws an error.
Now this is how I tried:
applicationContext @ Spring:
bean id=sessionFactory
Spring does not rollback automatically on regular exceptions. You
either have to explicitly tell it to, or throw a RuntimeException (or
one of its subclasses of course).
On Fri, Aug 29, 2008 at 3:26 PM, Markus [EMAIL PROTECTED] wrote:
Hi all,
I have the following Problem:
I want a
On Fri, Aug 29, 2008 at 09:26:19PM +0200, Markus wrote:
throw new Exception(xxx);
From the Spring doco:
Note however that the Spring Framework's transaction infrastructure code
will, by default, only mark a transaction for rollback in the case of
runtime, unchecked exceptions;
Thank you very much!
-solved
Markus
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]