Hi, I'm re-using the same domain classes across 3 apps. 1 (public-facing) app is read-only, the other 2 apps (admin and jobs) are read/write.
For some entities, i want them cached in the public-facing webapp but not by the other 2 apps. (The cache is NOT distributed).
What's the best way of having different cache configurations for different apps? (I'm using annotations and ehcache).
I'm considering having a different ehcache.xml for each app and set maxElementsInMemory=0, overflowToDisk=false
Is this feasible? Is there a better way?
|