1 of 1 people found this helpful
Runtime modifiable configuration fields are marked org.infinispan.config.Dynamic, but that's probably not going to be sufficient, certainly not if you want to change the underlying JGroups config. Apart from that you could engineer a restart the Cache / CacheManager to reload configuration, or better still an architecture that supports a rolling upgrade would allow for configuration changes without any loss of service. This would also permit you to make changes to your object graph without a total system restart.
Okay I suspected I could toss the CacheManager and all related Caches, and reload everything from scratch. This would actually be okay with me, since I'm willing to drop cache everywhere during such an operation.
One question, though, is whether the XML file contents are themselves held in memory somewhere, so if I change them on disk will a brand-new CacheManager read the new changes from disk or will it use an old version of the file held in memory?
Thanks for the help!
A new CacheManager will reload from disk.
Thanks for the help - I think this will work well.