I am looking for a recommended CacheProvider for the following config:
-JBoss Cache Core 3.0.2 (will run in cluster, using async invalidation)
-Hibernate 3.2.6.ga (cannot use hibernate 3.3.x because problems with javassist require using CGLIB, but http://opensource.atlassian.com/projects/hibernate/browse/ANN-782 prevents using 3.3.x)
-will use entity, query, and collection caches (Cache instance per)
-use MVCC (avoid synchronization on reads)
This PDF guide http://galder.zamarreno.com/wp-content/uploads/2008/09/hibernate-jbosscache-guide.pdf is inapplicable to Hibernate < 3.3.1, requiring usage of RegionFactory rather than CacheProvider
On the other hand, this blog http://galder.zamarreno.com/?p=56 does use a CacheProvider, but seems to be geared for JBoss Cache < 3, so no MVCC (locking reads...).
So which CacheProvider should I use, given above constraints?
You could try using the pattern described for JBC < 3, but still use JBC 3 + MVCC. There is no real reason why it should not work. And do report your findings - I'm sure people would find it useful.
Add a section on this wiki page with your findings.