This content has been marked as final.
Show 3 replies
-
1. Re: Integrate Infinispan Server Endpoint into Wildfly 10.1.0.Final
pferraro Mar 16, 2017 6:13 PM (in response to sdyarnell)If you access your database via JPA, you can use WildFly's distributed second-level cache which will do all of this for you.
-
2. Re: Integrate Infinispan Server Endpoint into Wildfly 10.1.0.Final
sdyarnell Mar 17, 2017 10:07 AM (in response to pferraro)I do not understand how any piece of software in wildfly would know to do anything if I simply run a SQL statement on the underlying database. Can you please elaborate on how that is the case?
-
3. Re: Integrate Infinispan Server Endpoint into Wildfly 10.1.0.Final
pferraro Mar 19, 2017 9:00 AM (in response to sdyarnell)I didn't say anything about running a SQL statement via JDBC. I said that, if you use JPA for database access, you can leverage Hibernate's 2nd-level cache to perform caching/invalidation for you.
Using a remote cache to persist entities largely defeats the purpose of this level of caching, since it requires a network call to access the cached data.