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.
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.
LDEV-3514: Wrap all transactional methods with TransactionRetryInterceptor. Set number of attempts to 3. Remove previous safety mechanism for completeActivity() method.
LDEV-3514: Wrap all transactional methods with TransactionRetryInterceptor. Set number of attempts to 3. Remove previous safety mechanism for completeActivity() method.
LDEV-3428: Do not create default conditions when Tool output definitions are fetched. They only get created when Tool defaut content is cloned.Fix class cast exeption when changing grade of first activity in sequence.Fix lesson mark calculation exception.Pass IDs to service methods instead of DB objects.
LDEV-3428: Do not create default conditions when Tool output definitions are fetched. They only get created when Tool defaut content is cloned.Fix class cast exeption when changing grade of first activity in sequence.Fix lesson mark calculation exception.Pass IDs to service methods instead of DB objects.
LDEV-3335, LDEV-3340: Remove a filter which sets inactive timeout in sessions. With new SSO it is just needed in Central and it is already taken care of by SessionListener.
LDEV-3335, LDEV-3334: Use SSO mechanism introduced in WildFly 9. Do not create web.xml files with XDoclet as it can not produce them based on 3.1 schema. Use static ones instead. Make SessionManager just a proxy to webserver's HTTP session. Remov custom shared sessions and JSESSIONIDSSO cookie as they are obsolete. Remove own session monitoring as the container should take care of invalidation. Move injecting UserDTO into session to SsoHandler intead of UniversalLoginModule as an authentication request may not reach the latter due to WildFly credentials caching.