Hibernate Second Level Cache Provider and Cache Monitor
posted 2 years ago
I don't have much experience with Hibernate second level cache providers. I have achieved, following EHCache documentation, to configure in my hibernate.cfg.xml and ehcache.xml files the EHCache cache provider. I don't get any Hibernate errors, but I want to really see if the Cache works.
I have downloaded EHCache monitor (free development version) and have followed the documentation (set the probe in the application and run the script) but I always get in the monitor 0 probes registered and no cache statistics are displayed.
I have following cache parameters in my hibernate.cfg.xml:
my ehcache.xml file:
In my hibernate xml entity mapping file I have added:
I have searched for this problem in the web and in different forums, I have tried different configurations but I didn't have any results, I always get no probe registered. I am using Hibernate 4.
By the way, I would like to know if there is any other free Hibernate second cache level solution that has a good monitoring system. Which second level cache solution is easier to integrate?
I would also like to ask if there is any Hibernate-Memcached conector or plugin. I have found this conector: