applicationContext.xml

Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
LDEV-5426 Switch from custom time zones to built-in Java ones

  1. … 40 more files in changeset.
LDEV-5248 Get query cache stats directly from Session Factory

  1. … 2 more files in changeset.
LDEV-4411 Use WF provided entity cache configuration

  1. … 4 more files in changeset.
LDEV-4411 Add configuration for collection cache on multinode env

LDEV-4411 Set up default and immutable 2nd level cache configuration

  1. … 1 more file in changeset.
LDEV-5248, LDEV-4411 Add 2nd level cache to selected elements

Displaying Assessment results is too DB-intense for multiple learners.

We can enable a short-lived query cache for some entities which have

most impact on the results page. This way multiple requests can reuse

same objects from cache and there is little danger of inconsistency.

  1. … 19 more files in changeset.
LDEV-4696 Allow default value of Hibernate cache JNDI name

LDEV-4696 Set proper JNDI name for transaction manager

Also get rid of deprecated manager_lookup_class property.

LDEV-4696 Change transaction configuration for Hibernate 5.3

hibernate.transaction.factory_class is deprecated. We need to use

hibernate.transaction.coordinator_class

LDEV-4411 Enable and configure Hibernate 2nd level cache

This configuration is only for standalone mode. It is explained in JIRA

comments.

  1. … 1 more file in changeset.
LDEV-4175: Turn off Hibernate second level cache as it can lead to unsynchronised data on clustered environment.

LDEV-3347: Revert to default caches' settings as "entity" cache config is a template for a region (one Java entity = one region). This is different to JBoss where all entities were stored in single region and it had to be large. Add missing parameters in Hibernate config.

  1. … 2 more files in changeset.
LDEV-3514: Get rid of session re-creation on transaction failure as WF probably manages sessions differently.

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.

  1. … 3 more files in changeset.
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.

  1. … 3 more files in changeset.
LDEV-3514: Use pretInterceptor instead of postInterceptor. Create new transactions for service method retries.

Attach activity to Hibernate session in completeActivity() method.

  1. … 42 more files in changeset.
LDEV-3514: Use pretInterceptor instead of postInterceptor. Create new transactions for service method retries.

Attach activity to Hibernate session in completeActivity() method.

  1. … 43 more files in changeset.
LDEV-3514: Wrap all transactional methods with TransactionRetryInterceptor. Set number of attempts to 3. Remove previous safety mechanism for completeActivity() method.

  1. … 41 more files in changeset.
LDEV-3514: Wrap all transactional methods with TransactionRetryInterceptor. Set number of attempts to 3. Remove previous safety mechanism for completeActivity() method.

  1. … 42 more files in changeset.
LDEV-3447: Get rid of c3p0 configuration as we do not use this library.

LDEV-3447: Get rid of c3p0 configuration as we do not use this library.

  1. … 2 more files in changeset.
LDEV-3316: Register PersistenceExceptionTranslationPostProcessor bean. Together with HibernateTemplate we lose automatic exception translation from hibernate's to spring's DataAccessException exception hierarchy. This PostProcessor is responsible for handling such conversion in all java types annotated with @Repository stereotype annotation.

LDEV-3347: alter hibernateProperties settings. set default Infinispan cache for contentrepository entities to 'contentrepository-entity'.

LDEV-3320: Switch TransactionManager used by LAMS to JTA. Update hibernate.properties to use JTA platform as transactions provier. Update hibernate.properties to use TransactionAwareSessionContext .

In order for Infinispan and Hibernate to correctly cooperate within transactions - it is recommended to use TransactionManager that supports JTATransactions (LAMS was using JDBCTransaction type). http://infinispan.org/docs/6.0.x/user_guide/user_guide.html#_jta_transactions_configuration

LDEV-3332: revert spring-beans schema declaration in application context xml files. export spring meta-inf in jboss-deployment-structure.xml

It is way more elegant approach to fix an issue with spring-beans.xsd loading from internet.

  1. … 77 more files in changeset.
LDEV-3332: fix spring contexts declaration to find spring-beans-4.0.xsd locally at classpath.

Having spring module defined as a set of spring jars (as we do have in Wildfly), it is impossible for spring to resolve xsd schema mapping file 'spring.schemas' correctly. With set of jars, we have 5 instances of this file (with different content) under the same path 'META-INF/spring.schemas'. This ended up in spring not beeing able to map spring-beans-4.0.xsd URL path to local resource location. Finally, this xsd was loaded from internet - and that significantly slowed Wildfly startup.

With this fix LAMS is way (depends on internet connection) faster to start.

  1. … 76 more files in changeset.
LDEV-3320: fix Infinispan configuration as 2nd level cache of Hibernate. The problem was, that for plain Hibernate usage, Infinispan has to be eagerly initialized (an already present when Hibernate starts). Also RegionFactory was changed to JNDIRegionFactory.

  1. … 1 more file in changeset.
LDEV-3293: Further remove LAMS custom cache management.

  1. … 1 more file in changeset.
LDEV-3293: Use Hibernate 4 cache. Remove unused cache management from lams_admin.

  1. … 909 more files in changeset.
LDEV-3293: Use Spring support for Hibernate 4 instead of 3 (session factory and filters). Use new path for Hibernate DTDs. Make XDoclet generate hbm.xml files with the correct path by providing it a new template.

  1. … 111 more files in changeset.