Sign in to edit and +1 items.
Login required
Download

Reloadable Config Plugin

(0)
Author(s) ksachdeva
Current Release 0.1   (2 years ago)
Grails Version 1.1.1 > *
Tags
Dependency
compile ":reloadable-config:0.1"
Last updated by admin 2 years ago
grails install-plugin reloadable-config
Last updated by ogourment 2 years ago
In your grails-app/conf/Config.groovy add

reloadable.cfgPollingFrequency = 5000
reloadable.cfgPollingRetryAttempts = 5
reloadable.cfgs = [ "file:/opt/myexternalconfigs/config.groovy"]
  1. where cfgPollingFrequency is in milli seconds i.e above e.g. configuration makes the app poll every 5 seconds for changes in external config.groovy
  2. where cfgPollingRetryAttempts is the maximum number of times plugin will try to reload the external config.groovy.
  3. where reloadable.cfgs contains the list of external configuration files that you would like to be reloaded.
Last updated by admin 2 years ago
Last updated by admin 2 years ago