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 0791B200C86 for ; Wed, 31 May 2017 08:58:59 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 063A4160BCB; Wed, 31 May 2017 06:58:59 +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 26ADF160BBA for ; Wed, 31 May 2017 08:58:58 +0200 (CEST) Received: (qmail 48787 invoked by uid 500); 31 May 2017 06:58:57 -0000 Mailing-List: contact dev-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@camel.apache.org Delivered-To: mailing list dev@camel.apache.org Received: (qmail 48775 invoked by uid 99); 31 May 2017 06:58:56 -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; Wed, 31 May 2017 06:58:56 +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 6CA4918128D for ; Wed, 31 May 2017 06:58:56 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.379 X-Spam-Level: X-Spam-Status: No, score=0.379 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, 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-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id KL8JvVlad85r for ; Wed, 31 May 2017 06:58:54 +0000 (UTC) Received: from mail-qk0-f177.google.com (mail-qk0-f177.google.com [209.85.220.177]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id D91785F27E for ; Wed, 31 May 2017 06:58:53 +0000 (UTC) Received: by mail-qk0-f177.google.com with SMTP id y201so4963380qka.0 for ; Tue, 30 May 2017 23:58:53 -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=/lXhwiA8Nt8ozWqcO39ZK1NxnTxiO8DMhTJALJEdqGI=; b=JR8DwwJhrAVa7W4lca5oLN8Y2PohEhD7YVt1M78NdRLclKmN/x5PfM1gt2oXKfik13 191FmuXY18aqgWvgGsSm7NHGX1oK+/T1h+kwJ+csNBJ6dl+K7kVXMLOLsKQdQExI3qPw +9QymHXAjBtCQPJ86U048KTOGKdWWaQZMl8jEZWKMoeDG2Vd7lcdAlMEXJT4eWEwlpS/ Q94EsfR3E/ZVs5zi02xfaYusu0a7i5eOTCiISvuHyiEOw+Q5AdjP7fhktdPaqsMWCtjO dXmEOpnhA1LqguWkPN/eCSroAznI1YspJTiJJIfTw0c/68PwsHmooIOFTMyJEVcfE0uy /9/g== 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=/lXhwiA8Nt8ozWqcO39ZK1NxnTxiO8DMhTJALJEdqGI=; b=kCl5BcmlvLqHw1titV5VdvJh1Sv2iKLiXAfH3rCyanxAXjGux2fI8vVTEQ8V6PA53m R/mIha5lRDurQEeyqc+nvRHnG//lZshCd3ZRhaCBouKiwtmPP4uBWJLOmejZo++h5zoU kSKwl1nG7OnqnhMxes0r9e1PWsv3QvFBpaq4U7kYbaFGqYOG/+zdrLyy5f5zCJw5CdAQ YxzPgkV/A98KQCxbY5Dl1Xu4R1yBEZfdOw2ZyOnrZbd4ZNocAzxbXtW9h3q6hdzyhZ6s wAFuUDiPmr+wRYATWqivHbzjEwVSd/eHxqxoVNiSr+QYDZTuwp35OakRV9yXQsZlpaO2 EBjg== X-Gm-Message-State: AODbwcAV+w/oLHowu+XiYgy+Pcm75rrYOxoyJcw/F6rSbIgRQQnJLBmy 6d8xInRj4nmj9bBfX3KfakNdYCe0VL8r X-Received: by 10.55.141.133 with SMTP id p127mr25800557qkd.216.1496213933402; Tue, 30 May 2017 23:58:53 -0700 (PDT) MIME-Version: 1.0 Received: by 10.200.50.58 with HTTP; Tue, 30 May 2017 23:58:33 -0700 (PDT) In-Reply-To: References: From: Claus Ibsen Date: Wed, 31 May 2017 08:58:33 +0200 Message-ID: Subject: Re: [HEADS UP] Revision of CamelContext startup/stoppage with Spring is now in master To: dev Content-Type: text/plain; charset="UTF-8" archived-at: Wed, 31 May 2017 06:58:59 -0000 On Tue, May 30, 2017 at 11:19 AM, Zoran Regvart wrote: > Hi, > yes, the issue is with the `noStart` flag in `SpringCamelContext` the > contract of which I changed with CAMEL-11261, it used to mean: do not > start automatically, but only on `CamelContext::start()` with my > change it means do not start unless set to `false`. I've created a PR > against wildfly-camel[1] that should help. > > But I think it would be better to remove `noStart` flag from > SpringCamelContext, we could do a SpringCamelContextCustomizer or such > interface that will be applied before SpringCamelContext is started > (for instance on afterPropertiesSet) and wildfly-camel and tests can > use this to set `autoStartup` flag to `false`. > > If we're going to keep the `noStart` flag, then I think I need to > rework it to work like it did before CAMEL-11261, I don't know if > there are any other projects that might be affected by this change in > behaviour. > I would not think there are many other projects as wildfly-camel is an extension to bring Camel to run on WildFly via the JBoss Module System. Most Camel users are end users and Camel runs well on other platforms and containers out of the box. > zoran > > [1] https://github.com/wildfly-extras/wildfly-camel/pull/1890 > > On Tue, May 30, 2017 at 11:12 AM, Claus Ibsen wrote: >> Hi >> >> Did you guys find out the problem with wildfly-camel ? >> >> And wonder if people from the community could give this a test on >> their camel spring apps? For example I think there was an user >> reported about this shutdown problem a while back, that lead to this >> solution. Maybe that person can give this a test? >> >> On Mon, May 29, 2017 at 9:29 AM, Zoran Regvart wrote: >>> Hi Cameleers, >>> I've merged PR#1685[1] for CAMEL-11261[2] the revision of the way >>> CamelContext is started/stopped when used with Spring framework. >>> >>> Based on the amount of intertwined functionality that we have with >>> Spring this has the potential to break things in unexpected places, so >>> please get back to me so I can troubleshoot any bugs you find. >>> >>> I already had an issue reported[3] by the wildfly-camel team that I'm >>> looking into, please keep those coming as you encounter any. >>> >>> On a sidenote, I've seen a strange behaviour when Maven uses outdated >>> version of `camel-test-spring` from the local repository; so, if >>> possible, before reporting please remove Camel artifacts from the >>> local repository (mvn -Pcleanrepo) and install the latest SNAPSHOT >>> (mvn -Pfastinstall clean install). With any luck the CI builds with >>> the newer version will pass soon so we'll have those SNAPSHOTS in the >>> Apache repository so this will not be needed. >>> >>> zoran >>> >>> [1] https://github.com/apache/camel/pull/1685 >>> [2] https://issues.apache.org/jira/browse/CAMEL-11261 >>> [3] https://github.com/wildfly-extras/wildfly-camel/issues/1889 >>> -- >>> Zoran Regvart >> >> >> >> -- >> Claus Ibsen >> ----------------- >> http://davsclaus.com @davsclaus >> Camel in Action 2: https://www.manning.com/ibsen2 > > > > -- > Zoran Regvart -- Claus Ibsen ----------------- http://davsclaus.com @davsclaus Camel in Action 2: https://www.manning.com/ibsen2