I am trying to use OPTIMISTIC NODE LOCKING for my second level cache. Based on what I have read, using
in persistence.xml and providing an XML config file using
works, but it results in having a cache that is not managed by the app server. To avoid that problem, is it correct/enough to use org.jboss.ejb3.entity.OptimisticTreeCacheProviderHook as my cache.provider_class and change the ejb3-entity-cache-service.xml in my deploy directory to use OPTIMISTIC NODE LOCKING? I did that and didn't get any errors, but I'm not sure if it gives me real OPTMISTIC NODE LOCKING behavior.