Johan wrote:
Maybe to simple :-) consider the following snippet
int x = 0; try { x=x+10; x=x+10; somethingMightThrowingAnException(x); x=x+10; } catch (Exception e) { }
if somethingMightThrowingAnException(x) is not throwing an exception x would be 30 in the end. but if somethingMightThrowingAnException(x) is throwing an exception the value of x=20. For the transaction it should be 0.
True, but I was trying to say that there's nothing in the JLS to do what the OP wants... the closes thing it offers is the exception mechanism.
I think you need a transactionmanager to solve this problem.
Yes, that's got to be the best advice yet.
Erik
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

