Hibernate second-level cache ehcache.xml, the cache setting for entities can't be read to HIbernate?

I found where my problem is. I'm using ehcache as cache provider. In the ehcache.

Xml,I think the defaultCache element is also used for ALL THE QueryCaches too, if I didn't set the standardQueryCache element. So it's not important whether or not I set the maxElementsInMemory of to "0", because all the QueryCache are using the defaultCache region. But setting the maxElementsInMemory of to "0" can definitely help to disable the sencond-level cache of that entity when using EntityManager.find() function.

PLEASE, read the documentation. In case of "maxElementsInMemory" setting, a value of "0" has a special meaning - unlimited. So instead of getting no cache at all, you're caching everything.

Another Good tutorial about Ehcache, spring and hibernate integration eiconsulting.blogspot.com/2011/10/ehcach....

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions