You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2016/08/27 08:40:27 UTC
[2/2] camel git commit: CAMEL-10273 - Jetty. Fixes jmx for custom
ThreadPools
CAMEL-10273 - Jetty. Fixes jmx for custom ThreadPools
Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/7a9dcfd1
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/7a9dcfd1
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/7a9dcfd1
Branch: refs/heads/master
Commit: 7a9dcfd17ad9051acd3105921915989086960d9e
Parents: 45f4b7b
Author: Paolo Antinori <pa...@redhat.com>
Authored: Fri Aug 26 18:00:49 2016 +0200
Committer: Claus Ibsen <da...@apache.org>
Committed: Sat Aug 27 10:40:16 2016 +0200
----------------------------------------------------------------------
.../java/org/apache/camel/component/jetty/JettyHttpComponent.java | 3 +++
1 file changed, 3 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/camel/blob/7a9dcfd1/components/camel-jetty-common/src/main/java/org/apache/camel/component/jetty/JettyHttpComponent.java
----------------------------------------------------------------------
diff --git a/components/camel-jetty-common/src/main/java/org/apache/camel/component/jetty/JettyHttpComponent.java b/components/camel-jetty-common/src/main/java/org/apache/camel/component/jetty/JettyHttpComponent.java
index 9c79767..2790bbc 100644
--- a/components/camel-jetty-common/src/main/java/org/apache/camel/component/jetty/JettyHttpComponent.java
+++ b/components/camel-jetty-common/src/main/java/org/apache/camel/component/jetty/JettyHttpComponent.java
@@ -1247,6 +1247,9 @@ public abstract class JettyHttpComponent extends HttpCommonComponent implements
} else {
s = new Server();
+ if (isEnableJmx()) {
+ enableJmx(s);
+ }
Server.class.getMethod("setThreadPool", ThreadPool.class).invoke(s, tp);
}
} catch (Exception e) {