-
1. Infinispan & Hibernate Relationship: How do they work with each other?
brenuart Feb 21, 2011 4:04 AM (in response to denramos)1 of 1 people found this helpfulI think you should first read Hibernate's documentation regarding its caching feature (http://docs.jboss.org/hibernate/core/3.6/reference/en-US/html_single/#performance-cache).
In short, caching in Hibernate is totally transparent - which means your application code doesn't change whether you activate or not the second level cache. Hibernate comes with support for many different cache solutions, incuding Infinispan.
In your example, Hibernate doesn't make use of the cache, it is your code that uses it...
-
2. Infinispan & Hibernate Relationship: How do they work with each other?
denramos Feb 22, 2011 12:21 AM (in response to brenuart)I see so simply enabling 2L cache will enable caching?
After doing a bit of reading Hibernate doesn't cache entities, unless configured. With 2L cache enabled in hibernate (using infinispan) and enabling entitycaching, will it be sufficient to cache and replicate this in a cluster?
-
3. Infinispan & Hibernate Relationship: How do they work with each other?
brenuart Feb 22, 2011 3:50 AM (in response to denramos)1 of 1 people found this helpfulIf Hibernate is properly configured, yes.
If Infinispan is properly configured, yes.
But as usual, nothing is better than trying yourselves... do your home work, and see what happens.