LDEV-3542: Improving performance of Peer Review tool - now able to check how many potential learners there are to determine whether a tool's user list should be updated.
LDEV-3514: Get rid of Scratchie's own transaction retry mechanism.Make Assessment aware that Leader's DB UID may not be set yet when checking.Try to recreate Hibernate session after it got closed because of an exception.
LDEV-3514: Get rid of Scratchie's own transaction retry mechanism.Make Assessment aware that Leader's DB UID may not be set yet when checking.Try to recreate Hibernate session after it got closed because of an exception.
LDEV-3514: Use pretInterceptor instead of postInterceptor.Create new transactions for service method retries.Attach activity to Hibernate session in completeActivity() method.
LDEV-3514: Use pretInterceptor instead of postInterceptor.Create new transactions for service method retries.Attach activity to Hibernate session in completeActivity() method.
LDEV-3514: Use postInterceptor instead of preInterceptor.PreInterceptor apparently runs before Hibernate transaction gets created. When an exception in the proxied method occurs, the transaction is canceled and is not re-created when retry is attempted. This leads to "no session" or "read only transaction on write" errors.PostInterceptor seems to work when the transaction is already created, so retries happen witin its scope.