From 224d4dc94f9b5d2c4681b4d83cfa2d8b07ef9082 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20Bone=CC=81r?= Date: Tue, 21 Dec 2010 22:59:40 +0100 Subject: [PATCH] added option to turn on/off JMX browsing of the configuration --- akka-actor/src/main/scala/akka/config/Config.scala | 1 + config/akka-reference.conf | 2 ++ 2 files changed, 3 insertions(+) diff --git a/akka-actor/src/main/scala/akka/config/Config.scala b/akka-actor/src/main/scala/akka/config/Config.scala index 01ae02ef39..4437cace1d 100644 --- a/akka-actor/src/main/scala/akka/config/Config.scala +++ b/akka-actor/src/main/scala/akka/config/Config.scala @@ -101,6 +101,7 @@ object Config extends Logging { CConfig.fromString("") // 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( diff --git a/config/akka-reference.conf b/config/akka-reference.conf index 3301c7f46e..5634c39c09 100644 --- a/config/akka-reference.conf +++ b/config/akka-reference.conf @@ -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