* 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:
parent
c070627d99
commit
2b7e92d9f6
1 changed files with 9 additions and 4 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue