Hibernate (and so JPA which is wrapper on hibernate) provides two levels of caching mechanisms. a) level 1 cache which is at session object layer/level b) level 2 cache which is at session factory layer/level
If I am using external caches like redis or ehcache, where does this cache sit in the above. Or should I disable level 2 cache to enable redis/ehcache. Not sure how and where the external cache fits with level 1 & 2 caches.
Or - Are various configurations possible?
Could someone explain. Thanks in advance.