Towards the end of Chapter 6 we cover how to integrate Coherence with Kodo to act as a second level cache for JPA entities.
Readers who are interested in this capability should also check out TopLink Grid
. As well as enabling Coherence to act as a second level cache, TopLink Grid optionally allows JPQL queries to be executed directly against the distributed data grid.
I recently enabled BigRez to use TopLink Grid. This was straightforward. I followed the path documented in Chapter 7 to switch the JPA provider to TopLink; followed the TopLink Grid guide to configure TopLink and Coherence, and annotate the entities I wanted to cache; packaged coherence.jar, the EclipseLink and TopLink jar files in APP-INF/lib; and added a filtering class loader to ensure these versions of the libraries are used.