Accelerate Your JBoss Enterprise Middleware - Red Hat Summit
Accelerate Your JBoss Enterprise Middleware - Red Hat Summit
Accelerate Your JBoss Enterprise Middleware - Red Hat Summit
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
<strong>Accelerate</strong> <strong>Your</strong> <strong>JBoss</strong> <strong>Enterprise</strong> <strong>Middleware</strong> –Persistence JPA/HibernatePersistencePersistenceJPAJPAHibernateHibernate● Key configuration parameters:● Entity Cache● Entity cache types● local-cache, invalidation-cache, replicated-cache● transaction mode● eviction-strategy● Defaults to LRU (Least recently used), but Infinispan gives a newalgorithm called LIRS (Low Inter-reference Recency Set), whichperforms better in my tests.● max-entries● How many entries the cache can hold. Sizing this is based on thenumber of entities to be cached, and perhaps a subset of thembased on the access pattern.● expiration● max-idle and lifespan● Lifespan causes eviction regardless of whether it has been idleor not.● Max-idle, without specifying lifespan, will cause entities thathave not been accessed in that time, to be eligible to be evicted.