0

I have two web applications uses the same database

  1. Management web app which responsible to modify the system configurations on the database.
  2. Business web app which responsible to serve the users request based on the configurations .

Unfortunately every application has his own DAO implementations the management web app is using hibernate only. and the business web app is using spring jpa.

now I want to implement second layer cache and query cache using clustered eh-cache how can I tell the hibernate in the management server that I have query caches in the other servers so the management server will updates the query cache if any value changed.

Osama Abu Qauod
  • 223
  • 1
  • 4
  • 13
  • I would think that you cannot easily mix hibernate and JPA on the cache level. Did you try to configure memcached or are you just asking? This may help https://github.com/mihaicostin/hibernate-l2-memcached – thst Aug 10 '17 at 22:56

1 Answers1

0

Unexpectedly the caching works without adding any extra code the hibernate is smart enough to sync the data and evicting the changed values from cache

Osama Abu Qauod
  • 223
  • 1
  • 4
  • 13