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 2BE1D200D37 for ; Thu, 9 Nov 2017 07:48:37 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 2A879160BEF; Thu, 9 Nov 2017 06:48:37 +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 791841609E5 for ; Thu, 9 Nov 2017 07:48:36 +0100 (CET) Received: (qmail 25561 invoked by uid 500); 9 Nov 2017 06:48:35 -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 25544 invoked by uid 99); 9 Nov 2017 06:48:34 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 Nov 2017 06:48:34 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id D931CD43D5 for ; Thu, 9 Nov 2017 06:48:33 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.001 X-Spam-Level: * X-Spam-Status: No, score=1.001 tagged_above=-999 required=6.31 tests=[KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_DNSWL_NONE=-0.0001, URIBL_BLOCKED=0.001] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id Mly_m18i4LLZ for ; Thu, 9 Nov 2017 06:48:32 +0000 (UTC) Received: from mail.ilmenau.net (mail.ilmenau.net [80.88.16.16]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id E5C695FD83 for ; Thu, 9 Nov 2017 06:48:31 +0000 (UTC) Received: (qmail 25755 invoked from network); 9 Nov 2017 06:48:24 -0000 Received: from dslb-088-066-203-230.088.066.pools.vodafone-ip.de (HELO HMNotebook01) (michael.lueck@hm-ag.de@88.66.203.230) de/crypted with TLSv1: AES256-SHA [256/256] DN=none by mail.ilmenau.net with ESMTPSA; 9 Nov 2017 06:48:24 -0000 From: =?utf-8?Q?Michael_L=C3=BCck?= To: References: In-Reply-To: Subject: AW: Spring - Create Bean after Camel Context is started Date: Thu, 9 Nov 2017 07:48:24 +0100 Organization: HM Informatik AG Message-ID: <021801d35926$bd87cfa0$38976ee0$@hm-ag.de> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Outlook 16.0 Thread-Index: AQKdYcADy3nuMy1N8bgaSGuaaVzERaF3iWZA Content-Language: de archived-at: Thu, 09 Nov 2017 06:48:37 -0000 Hi Pascal,=20 perhaps you can encapsulate the call to the bean into a single route = builder and add that route dynamically to the Camel Context like here: https://stackoverflow.com/questions/10451444/add-camel-route-at-runtime-i= n-java But I'm not sure if I understood the use case correctly. Michael > -----Urspr=C3=BCngliche Nachricht----- > Von: Pascal Schumacher [mailto:pascalschumacher@gmx.net] > Gesendet: Mittwoch, 8. November 2017 20:25 > An: users@camel.apache.org > Betreff: Spring - Create Bean after Camel Context is started >=20 > Hello everybody, >=20 > using camel 2.20 with spring 5.0.1 and need to start another component > (defined as spring bean) after camel context has started. I added = 'depends- > on=3D"camelContextId"' to the other beans spring xml definition, but = this has a > no effect as the camel context is starting asynchronously. >=20 > Any ideas how to solve this? >=20 > Thanks and kind regards, >=20 > Pascal