Return-Path: Delivered-To: apmail-camel-dev-archive@www.apache.org Received: (qmail 80868 invoked from network); 3 Aug 2009 14:17:55 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 3 Aug 2009 14:17:55 -0000 Received: (qmail 98251 invoked by uid 500); 3 Aug 2009 14:18:00 -0000 Delivered-To: apmail-camel-dev-archive@camel.apache.org Received: (qmail 98207 invoked by uid 500); 3 Aug 2009 14:18:00 -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 98197 invoked by uid 500); 3 Aug 2009 14:18:00 -0000 Delivered-To: apmail-activemq-camel-dev@activemq.apache.org Received: (qmail 98194 invoked by uid 99); 3 Aug 2009 14:18:00 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Aug 2009 14:18:00 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Aug 2009 14:17:56 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id BF302234C055 for ; Mon, 3 Aug 2009 07:17:35 -0700 (PDT) Message-ID: <290341597.1249309055781.JavaMail.jira@brutus> Date: Mon, 3 Aug 2009 07:17:35 -0700 (PDT) From: "Willem Jiang (JIRA)" To: camel-dev@activemq.apache.org Subject: [jira] Resolved: (CAMEL-1873) template , consumerTemplate, service, proxy can't be set with right camel context if there are more than one camel context in the spring application context In-Reply-To: <327603901.1249304015716.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: ae95407df07c98740808b2ef9da0087c X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/activemq/browse/CAMEL-1873?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Willem Jiang resolved CAMEL-1873. --------------------------------- Resolution: Fixed camel-trunk http://svn.apache.org/viewvc?rev=800340&view=rev http://svn.apache.org/viewvc?rev=800340&view=rev camel-1.x branch http://svn.apache.org/viewvc?rev=800394&view=rev > template , consumerTemplate, service, proxy can't be set with right camel context if there are more than one camel context in the spring application context > ------------------------------------------------------------------------------------------------------------------------------------------------------------ > > Key: CAMEL-1873 > URL: https://issues.apache.org/activemq/browse/CAMEL-1873 > Project: Apache Camel > Issue Type: Bug > Components: camel-spring > Affects Versions: 1.4.0, 1.5.0, 1.6.0, 2.0-M1, 1.6.1, 2.0-M2, 2.0-M3 > Reporter: Willem Jiang > Assignee: Willem Jiang > Fix For: 1.6.2, 2.0.0 > > > Current camel support to define a producer template OUTSIDE a camel context, I think it works well just like the autowire function which is provided in Spring. > If there more than two Camel context in the Spring Application context , the user should specify the camel context which the template should use. > But I have a concern that even we put the template INSIDE the camel context, the template will not be set with a right version of camel context, since we use a CamelPostProcessor to inject CamelContext. > So I did a quick test on the current Camel code and found there is a bug if there are more one CamelContext -- CamelPostProcessor will inject the last create camel context into the CamelContextAware object. > Since it is not easy to add the camelContext referece id into the template element attribute, we'd better just support to parser these elements inside the camel context. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.