I have a controller marked with Transactional annotation. Method join may throw exception, that I'm handling by method handle with help of @ExceptionHandler annotation.
public String join(Model uiModel) {
... here exception occures
}
@ExceptionHandler(BalanceException.class)
public String handle() {
return "someView";
}
When handle method returns name of a view, then everything is fine. Unfortunately I need to make a redirect to another controller, that requires transaction.
Is it possible to complete this transaction and start new one ?