Repository: camel Updated Branches: refs/heads/camel-2.17.x 440538b30 -> f70e1e30e refs/heads/master 45f4b7b2e -> 7a9dcfd17
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/f70e1e30 Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/f70e1e30 Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/f70e1e30 Branch: refs/heads/camel-2.17.x Commit: f70e1e30e397368e97142530dfc03cb0fcda1498 Parents: 440538b Author: Paolo Antinori <[email protected]> Authored: Fri Aug 26 18:00:49 2016 +0200 Committer: Paolo Antinori <[email protected]> Committed: Sat Aug 27 09:37:59 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/f70e1e30/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 c6c48e2..b222d1c 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 @@ -1174,6 +1174,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) {
