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 A26A89328 for ; Wed, 8 Feb 2012 15:20:26 +0000 (UTC) Received: (qmail 33932 invoked by uid 500); 8 Feb 2012 15:20:26 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 33861 invoked by uid 500); 8 Feb 2012 15:20:25 -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 33842 invoked by uid 99); 8 Feb 2012 15:20:25 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Feb 2012 15:20:25 +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 abubakar.saddique@gmail.com) Received: from [216.139.236.26] (HELO sam.nabble.com) (216.139.236.26) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Feb 2012 15:20:20 +0000 Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1Rv9JP-0000HF-G3 for users@camel.apache.org; Wed, 08 Feb 2012 07:19:59 -0800 Date: Wed, 8 Feb 2012 07:19:59 -0800 (PST) From: muhammad siddique To: users@camel.apache.org Message-ID: <1328714399491-5466783.post@n5.nabble.com> In-Reply-To: References: <1328646432891-5464452.post@n5.nabble.com> Subject: Re: Spring destroys camelTemplate before CamelContext MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Thanks for reply I already tried depends-on, it didn't work. Spring is closing camelContext before the destruction of any other bean..but after destroying camelTemplate. I probably need a need a way to tell spring that camelTemplate depends on camelContet. And yes i am explicitly defining camelTemplate in xml. Here is how