Return-Path: X-Original-To: apmail-camel-users-archive@www.apache.org Delivered-To: apmail-camel-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 57D299CB4 for ; Mon, 9 Jan 2012 12:59:01 +0000 (UTC) Received: (qmail 32032 invoked by uid 500); 9 Jan 2012 12:59:00 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 31694 invoked by uid 500); 9 Jan 2012 12:58:50 -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 Delivered-To: moderator for users@camel.apache.org Received: (qmail 13859 invoked by uid 99); 9 Jan 2012 08:30:35 -0000 X-ASF-Spam-Status: No, hits=2.0 required=5.0 tests=SPF_NEUTRAL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: 216.139.236.26 is neither permitted nor denied by domain of metatechbe@gmail.com) Date: Mon, 9 Jan 2012 00:30:09 -0800 (PST) From: metatech To: users@camel.apache.org Message-ID: <1326097809226-5130769.post@n5.nabble.com> In-Reply-To: References: <1302889950815-4306163.post@n5.nabble.com> <1302891351596-4306258.post@n5.nabble.com> Subject: Re: Adding a startup listener via spring MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hi Claus, I tried the "depends-on" solution but unfortunately the camel context is started asynchronously after the Spring context is initialized. The behaviour is implemented in class OsgiSpringCamelContext, method onApplicationEvent. Do you think of any other reliable way to define dependencies between camel contexts ? Thanks, metatech Claus Ibsen-2 wrote > > In Spring XML you should be able to use the depends-on attribute to > say that your bean depends on Camel. > > > > > > > > -- View this message in context: http://camel.465427.n5.nabble.com/Adding-a-startup-listener-via-spring-tp4306163p5130769.html Sent from the Camel - Users mailing list archive at Nabble.com.