camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davscl...@apache.org
Subject [2/2] git commit: CAMEL-7132: quartz/quartz2 component should use avoid null management name if JMX not enabled.
Date Tue, 04 Feb 2014 08:42:14 GMT
CAMEL-7132: quartz/quartz2 component should use avoid null management name if JMX not enabled.


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

Branch: refs/heads/camel-2.12.x
Commit: b0adea0669274c11eeb0aca5c9c7e81919cff053
Parents: cbb4ad2
Author: Claus Ibsen <davsclaus@apache.org>
Authored: Tue Feb 4 09:36:11 2014 +0100
Committer: Claus Ibsen <davsclaus@apache.org>
Committed: Tue Feb 4 09:36:36 2014 +0100

----------------------------------------------------------------------
 .../java/org/apache/camel/component/quartz/QuartzComponent.java   | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/b0adea06/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 eb19c79..64979bc 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
@@ -527,7 +527,8 @@ public class QuartzComponent extends DefaultComponent implements StartupListener
 
         // register current camel context to scheduler so we can look it up when jobs is
being triggered
         // must use management name as it should be unique in the same JVM
-        scheduler.getContext().put(QuartzConstants.QUARTZ_CAMEL_CONTEXT + "-" + getCamelContext().getManagementName(),
getCamelContext());
+        String uid = QuartzHelper.getQuartzContextName(getCamelContext());
+        scheduler.getContext().put(QuartzConstants.QUARTZ_CAMEL_CONTEXT + "-" + uid, getCamelContext());
 
         // store Camel job counter
         AtomicInteger number = (AtomicInteger) scheduler.getContext().get("CamelJobs");


Mime
View raw message