added option to turn on/off JMX browsing of the configuration
This commit is contained in:
parent
5e29b8663a
commit
224d4dc94f
2 changed files with 3 additions and 0 deletions
|
|
@ -101,6 +101,7 @@ object Config extends Logging {
|
|||
CConfig.fromString("<akka></akka>") // default empty config
|
||||
}
|
||||
}
|
||||
if (config.getBool("akka.enable-jmx", true)) config.registerWithJmx("akka")
|
||||
|
||||
val CONFIG_VERSION = config.getString("akka.version", VERSION)
|
||||
if (VERSION != CONFIG_VERSION) throw new ConfigurationException(
|
||||
|
|
|
|||
|
|
@ -12,6 +12,8 @@ akka {
|
|||
|
||||
time-unit = "seconds" # Time unit for all timeout properties throughout the config
|
||||
|
||||
enable-jmx = on # expose the configuration through JMX
|
||||
|
||||
# These boot classes are loaded (and created) automatically when the Akka Microkernel boots up
|
||||
# Can be used to bootstrap your application(s)
|
||||
# Should be the FQN (Fully Qualified Name) of the boot class which needs to have a default constructor
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue