In your persistence.xml use

<property name="hibernate.cache.provider_class" 
value="org.jboss.ejb3.entity.OptimisticTreeCacheProviderHook"/>

instead of 

<property name="hibernate.cache.provider_class" 
value="org.jboss.ejb3.entity.TreeCacheProviderHook"/>.

This isn't strictly necessary though. OptimisticTreeCacheProviderHook is a 
trivial subclass of TreeCacheProviderHook.  Both are able to detect the cache's 
NodeLockingScheme config and work appropriately.  The only additional behavior 
in OptimisticTreeCacheProviderHook is it logs a WARN if the cache's 
NodeLockingScheme isn't OPTIMISTIC, since that suggests the user forgot to 
change the NodeLockingScheme.

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4210531#4210531

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4210531
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to