How to maintain EntityManager's cache with Hibernate under JBoss in a consistent state?
Hi! We are running JBoss with Hibernate and are having this issue. When a session bean uses an EntityManager to find an entity, it may already exist in the EntityManager's cache and it's state may be already outdated. If the code uses such an entity to make decisions, it may make wrong decisions that would produce bugs. Here is an exa...