Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id C3DA3200CC5 for ; Tue, 11 Jul 2017 13:29:11 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id C0D0B161D66; Tue, 11 Jul 2017 11:29:11 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 11630161D2A for ; Tue, 11 Jul 2017 13:29:10 +0200 (CEST) Received: (qmail 68700 invoked by uid 500); 11 Jul 2017 11:29:10 -0000 Mailing-List: contact users-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@camel.apache.org Delivered-To: mailing list users@camel.apache.org Received: (qmail 68683 invoked by uid 99); 11 Jul 2017 11:29:09 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Jul 2017 11:29:09 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id B8939195BB9 for ; Tue, 11 Jul 2017 11:35:07 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.397 X-Spam-Level: X-Spam-Status: No, score=-0.397 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-2.796, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id Xy3-K8AAg0fO for ; Tue, 11 Jul 2017 11:35:05 +0000 (UTC) Received: from mail-yb0-f171.google.com (mail-yb0-f171.google.com [209.85.213.171]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id EBF6B62807 for ; Tue, 11 Jul 2017 11:21:10 +0000 (UTC) Received: by mail-yb0-f171.google.com with SMTP id f194so36806183yba.3 for ; Tue, 11 Jul 2017 04:21:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=tRXBBGSpL/7a3NPsbqqoO2qmw07QFqVEKlVT/x6Wd6U=; b=NdoQlZ+f2rQs+Ry6lWApvq1qLdMPePe3u/8hHAb3vjhwWgK87V9K3qL47gtIrZj/45 CGOvXfToMUcYIaxWs9bJOGJlNw+lAOfv1baJYSJ3nxoDdQlWM0M5cjxNE8/SVyduoUd4 4WS39Lxq0NDjFTUA3flR7ig2MM/xom6e5zeGDTe5KiGsweqnZ0e4OzGK04c3GgnV0joR vWno3w6IacvnxUfQpLLjwIDsCjldeRDeO+Qk7xEULW8PJtk5BN6c+2zihD3td5Imoo3k W245nn6jiRuPfe0l5VOjT2hpfvLTTfxHUxLtAcWz2Qtu1ToDsHMKZ9TIriT3eJtftLJE 691A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=tRXBBGSpL/7a3NPsbqqoO2qmw07QFqVEKlVT/x6Wd6U=; b=UidV1QLQPC3S1CyXLWUZ9qmFvkGYou2lwsRIHluDj06vpG4Gd5kwW2gfJbpctAQIBE uVYIe7QnLKvuAz3vKQZj8r/mZB2+/zaXHRcsSrhagn9Sz24KdSYqD6psvcvdx53J8nzT 6U/+oiZTHjLdugYJmn6Sm1x1+nFZKC4xnquHGHrzajD07c9ciL5a6fARdWAipgqWoGmb fi/bYvhC7vffj6Zu4pwK577ycwZJJbqRYM6GhbQRSFRMfRXRhOrBoDdxr8RD0jLrTO79 yHRaADxOKi8+thd+FwYG2qpACE2ZuuP5o7CmZf6I3rfdYZN665ryaZIHF8wFzhZnzglN YRHw== X-Gm-Message-State: AIVw113epR7RH7inGVBqyGpCvRlBgNCzjbdWTmbw5ySrKSUQ1B6zcBh6 b3JPhd2kUCiukbjcM4I= X-Received: by 10.37.164.199 with SMTP id g65mr17507734ybi.160.1499772069616; Tue, 11 Jul 2017 04:21:09 -0700 (PDT) Received: from mail-yw0-f180.google.com (mail-yw0-f180.google.com. [209.85.161.180]) by smtp.gmail.com with ESMTPSA id i128sm5802513ywe.8.2017.07.11.04.21.08 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 11 Jul 2017 04:21:08 -0700 (PDT) Received: by mail-yw0-f180.google.com with SMTP id x125so47588705ywa.0 for ; Tue, 11 Jul 2017 04:21:08 -0700 (PDT) X-Received: by 10.129.39.149 with SMTP id n143mr4468858ywn.189.1499772068410; Tue, 11 Jul 2017 04:21:08 -0700 (PDT) MIME-Version: 1.0 Received: by 10.129.116.212 with HTTP; Tue, 11 Jul 2017 04:20:47 -0700 (PDT) X-Originating-IP: [80.91.33.141] In-Reply-To: References: From: Henrik B A Date: Tue, 11 Jul 2017 13:20:47 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: Why is JMX gone after upgrading to Camel 2.18.x? To: users@camel.apache.org Content-Type: multipart/alternative; boundary="001a1141524261e21e055408e5c9" archived-at: Tue, 11 Jul 2017 11:29:12 -0000 --001a1141524261e21e055408e5c9 Content-Type: text/plain; charset="UTF-8" Typo, the PaleConfig class should obviously be like this: @Configuration public class PaleConfig extends CamelConfiguration { @Override protected void setupCamelContext(CamelContext camelContext) { camelContext.setUseMDCLogging(false); camelContext.setStreamCaching(true); camelContext.setAllowUseOriginalMessage(false); camelContext.setNameStrategy(new ExplicitCamelContextNameStrategy(CAMEL_CONTEXT_NAME)); camelContext.getShutdownStrategy().setTimeout(Long.parseLong(System.getProperty(SHUTDOWN_TIMEOUT, "10"))); } } On Tue, Jul 11, 2017 at 1:17 PM, Henrik B A wrote: > On Jul 11, 2017; 11:51am Claus Ibsen wrote: > > Hi > > > > You need to tell more about how you run Camel. And how you upgraded. > > I use Spring: > > @Configuration > public class PaleConfig extends CamelConfiguration { > camelContext.setUseMDCLogging(false); > camelContext.setStreamCaching(true); > camelContext.setAllowUseOriginalMessage(false); > camelContext.setNameStrategy(new ExplicitCamelContextNameStrate > gy(CAMEL_CONTEXT_NAME)); > camelContext.getShutdownStrategy().setTimeout(Long.parseLong( > System.getProperty(SHUTDOWN_TIMEOUT, "10"))); > } > > And then I refer to the context: > > @Configuration > public class HealthConfig implements InitializingBean { > > @Autowired private CamelContext camelContext; > > @Override > public void afterPropertiesSet() throws MalformedObjectNameException { > String mgmtName = camelContext.getManagementName(); > } > } > > With 2.17.7, mgmtName is set. With 2.18.0 (and above), mgmtName is null. > > I upgraded simply by replacing "2.17.7" with "2.18.0" (i have tried later > versions as well) in the Gradle configuration. > > Best regards, > Henrik > > --001a1141524261e21e055408e5c9--