After browsing the net and reading up on jboss reference documentation, JBoss cache seems to be the best provider, its transactional and clustered.
Ive read this article Clustered JPA/Hibernate Second Level Caching in JBoss AS 5
http://community.jboss.org/wiki/ClusteredJPAHibernateSecondLevelCachinginJBossAS5 which is very beneficial.
ive seen how to configure entites for caching, caching collections and query result caching.
JBOSS AS supports clustered EJB session beans with annotation
Code:
@org.jboss.ejb3.annotation.Clustered
, is that applicable to weblogic server?
I understand most of the cache properties in persistence.xml but again its jboss specific.
So i want to know if this is enough to run with:
Code:
hibernate.cache.use_second_level_cache=true
hibernate.cache.use_query_cache=true
hibernate.cache.region_prefix=mycache
hibernate.cache.region.factory_class=org.hibernate.cache.jbc2.SharedJBossCacheRegionFactory
Does hibernate.cache.provider_class need to be set?
Shane.