We use JBoss 5.1.
However, the caching of entities works fine!
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