Is it possible to use multiple ehcache.xml (in different projects, same war)?

后端 未结 3 1494
隐瞒了意图╮
隐瞒了意图╮ 2020-12-18 19:34

I have a services project and a web project. I need to have eh-cache in both projects.

The idea is that if the service project is updated, it\'s cache-related change

3条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-18 20:13

    if you use different cache for different WAR and you want to prevent collisions, go to echcache.xml of each WAR and define different multicastGroupPort values under cacheManagerPeerProviderFactory element. also disable distribution.

    Good luck!

提交回复
热议问题