0 Replies Latest reply on Sep 10, 2012 8:13 AM by wolfonline

    JBoss 5.1 @Cache works - but we have no cache configured. Why does it work?

      We use JBoss 5.1.

       

      • Our entities are marked with the annotation @Cache( usage = CacheConcurrencyStrategy.TRANSACTIONAL ).

       

       

      • The server configuration does not include the folder "cluster" which usually includes the cache config files in the folder "jboss-cache-manager.sar".

       

      However, the caching of entities works fine!

       

      • Why is the caching working?
      • Where can we configure the cache behaviour?
      • The only jboss.cahe entry in JMX-Console is service=InvalidationManager, we have no cache statistics, etc.

       

      We have the understand the configuration in order to fix a cache problem: As soon as a certain execption is thrown while the entity manager merges a changed entity to the database, the changes of the entity are written to the cache but they are NOT written to the underlying database. As soon as the next service accesses this entity an OptimisticLockException is thrown.

       

      It seems that the cache does not know that an exception was thrown, it produces no rollback...?

       

      Thank you

      Thomas