camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davscl...@apache.org
Subject git commit: CAMEL-7030: quartz components now register the quartz scheduler in JMX by default, unless configured not to do so by end user.
Date Tue, 03 Dec 2013 10:14:20 GMT
Updated Branches:
  refs/heads/master 31b419c9d -> 126c312c2


CAMEL-7030: quartz components now register the quartz scheduler in JMX by default, unless
configured not to do so by end user.


Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/126c312c
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/126c312c
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/126c312c

Branch: refs/heads/master
Commit: 126c312c207a72f3712859208f16fdd46883543d
Parents: 31b419c
Author: Claus Ibsen <davsclaus@apache.org>
Authored: Tue Dec 3 11:16:40 2013 +0100
Committer: Claus Ibsen <davsclaus@apache.org>
Committed: Tue Dec 3 11:16:40 2013 +0100

----------------------------------------------------------------------
 .../java/org/apache/camel/component/quartz/QuartzComponent.java    | 2 ++
 .../java/org/apache/camel/component/quartz2/QuartzComponent.java   | 2 ++
 2 files changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/126c312c/components/camel-quartz/src/main/java/org/apache/camel/component/quartz/QuartzComponent.java
----------------------------------------------------------------------
diff --git a/components/camel-quartz/src/main/java/org/apache/camel/component/quartz/QuartzComponent.java
b/components/camel-quartz/src/main/java/org/apache/camel/component/quartz/QuartzComponent.java
index 51fea39..acfafbb 100644
--- a/components/camel-quartz/src/main/java/org/apache/camel/component/quartz/QuartzComponent.java
+++ b/components/camel-quartz/src/main/java/org/apache/camel/component/quartz/QuartzComponent.java
@@ -451,6 +451,7 @@ public class QuartzComponent extends DefaultComponent implements StartupListener
 
             // enable jmx unless configured to not do so
             if (enableJmx && !prop.containsKey("org.quartz.scheduler.jmx.export"))
{
+                LOG.info("Setting org.quartz.scheduler.jmx.export=true to ensure QuartzScheduler(s)
will be enlisted in JMX.");
                 prop.put("org.quartz.scheduler.jmx.export", "true");
             }
 
@@ -489,6 +490,7 @@ public class QuartzComponent extends DefaultComponent implements StartupListener
             // enable jmx unless configured to not do so
             if (enableJmx && !prop.containsKey("org.quartz.scheduler.jmx.export"))
{
                 prop.put("org.quartz.scheduler.jmx.export", "true");
+                LOG.info("Setting org.quartz.scheduler.jmx.export=true to ensure QuartzScheduler(s)
will be enlisted in JMX.");
             }
 
             answer = new StdSchedulerFactory(prop);

http://git-wip-us.apache.org/repos/asf/camel/blob/126c312c/components/camel-quartz2/src/main/java/org/apache/camel/component/quartz2/QuartzComponent.java
----------------------------------------------------------------------
diff --git a/components/camel-quartz2/src/main/java/org/apache/camel/component/quartz2/QuartzComponent.java
b/components/camel-quartz2/src/main/java/org/apache/camel/component/quartz2/QuartzComponent.java
index 3305310..5d5c308 100644
--- a/components/camel-quartz2/src/main/java/org/apache/camel/component/quartz2/QuartzComponent.java
+++ b/components/camel-quartz2/src/main/java/org/apache/camel/component/quartz2/QuartzComponent.java
@@ -132,6 +132,7 @@ public class QuartzComponent extends DefaultComponent implements StartupListener
             // enable jmx unless configured to not do so
             if (enableJmx && !prop.containsKey("org.quartz.scheduler.jmx.export"))
{
                 prop.put("org.quartz.scheduler.jmx.export", "true");
+                LOG.info("Setting org.quartz.scheduler.jmx.export=true to ensure QuartzScheduler(s)
will be enlisted in JMX.");
             }
 
             answer = new StdSchedulerFactory(prop);
@@ -170,6 +171,7 @@ public class QuartzComponent extends DefaultComponent implements StartupListener
             // enable jmx unless configured to not do so
             if (enableJmx && !prop.containsKey("org.quartz.scheduler.jmx.export"))
{
                 prop.put("org.quartz.scheduler.jmx.export", "true");
+                LOG.info("Setting org.quartz.scheduler.jmx.export=true to ensure QuartzScheduler(s)
will be enlisted in JMX.");
             }
 
             answer = new StdSchedulerFactory(prop);


Mime
View raw message