Transactions not working :/

2008-08-29 Thread Markus
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

Re: Transactions not working :/

2008-08-29 Thread James Carman
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

Re: Transactions not working :/

2008-08-29 Thread John Krasnay
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;

AW: Transactions not working :/

2008-08-29 Thread Markus
Thank you very much! -solved Markus - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]