* Change res.abort() semantics:

Just abort transaction and do not stop request execution,
  since we now have res.stop() to do the latter.
This commit is contained in:
hns 2007-03-15 16:19:28 +00:00
parent c070627d99
commit 2b7e92d9f6

View file

@ -525,12 +525,17 @@ public class ResponseBean implements Serializable {
}
/**
* Abort the current transaction by throwing an Error
* Abort the current transaction and start a new one
*
* @throws AbortException
* @throws Exception
*/
public void abort() throws AbortException {
throw new AbortException();
public void abort() throws Exception {
if (Thread.currentThread() instanceof Transactor) {
Transactor tx = (Transactor) Thread.currentThread();
String tname = tx.getTransactionName();
tx.abort();
tx.begin(tname);
}
}
}