Return-Path: Delivered-To: apmail-camel-dev-archive@www.apache.org Received: (qmail 81858 invoked from network); 14 Dec 2010 10:38:29 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 14 Dec 2010 10:38:29 -0000 Received: (qmail 27511 invoked by uid 500); 14 Dec 2010 10:38:29 -0000 Delivered-To: apmail-camel-dev-archive@camel.apache.org Received: (qmail 27337 invoked by uid 500); 14 Dec 2010 10:38:26 -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 27329 invoked by uid 500); 14 Dec 2010 10:38:25 -0000 Delivered-To: apmail-activemq-camel-dev@activemq.apache.org Received: (qmail 27326 invoked by uid 99); 14 Dec 2010 10:38:25 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 Dec 2010 10:38:25 +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.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 Dec 2010 10:38:23 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id oBEAc1It016232 for ; Tue, 14 Dec 2010 10:38:01 GMT Message-ID: <10976976.110791292323081807.JavaMail.jira@thor> Date: Tue, 14 Dec 2010 05:38:01 -0500 (EST) From: "Claus Ibsen (JIRA)" To: camel-dev@activemq.apache.org Subject: [jira] Created: (CAMEL-3425) CamelContext is started twice when using camel-blueprint MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org CamelContext is started twice when using camel-blueprint -------------------------------------------------------- Key: CAMEL-3425 URL: https://issues.apache.org/jira/browse/CAMEL-3425 Project: Camel Issue Type: Bug Components: camel-blueprint Affects Versions: 2.6.0 Reporter: Claus Ibsen Assignee: Guillaume Nodet Priority: Critical Fix For: 2.6.0 For example if you run the {{testRouteWithAllComponents}} test in {{CamelBlueprintTest}} in tests/camel-itest-osgi you will see _a lot_ of logging. But notice {code} [RMI TCP Connection(1)-10.0.1.2] INFO org.apache.camel.impl.DefaultCamelContext - Apache Camel 2.6-SNAPSHOT (CamelContext: 67-camel-2) is starting [RMI TCP Connection(1)-10.0.1.2] INFO org.apache.camel.impl.DefaultCamelContext - Apache Camel 2.6-SNAPSHOT (CamelContext: 67-camel-2) started in 0.144 seconds {code} Then blueprint does something {code} [Blueprint Extender: 3] INFO org.apache.camel.impl.DefaultCamelContext - Apache Camel 2.6-SNAPSHOT (CamelContext: 4-camel-5) is starting [Blueprint Extender: 3] INFO org.apache.camel.impl.DefaultCamelContext - Apache Camel 2.6-SNAPSHOT (CamelContext: 4-camel-5) started in 0.067 seconds {code} And likewise both CamelContext's is shutdown when the test completes. There are logging events for that as well. Pay attention to the name of the 1st CamelContext {{67-camel-2}}. This is the *correct* name as its based on the bundle id, our end user Camel application is given. This ensures that the CamelContext from his application has a name which is unique and refers to the bundle id as well. Now if you look at the 2nd CamelContext being started its given another name {{4-camel-5}}. That id is most likely using a shared bundle id with a low number. For example camel-blueprint or camel-core bundle, or something like that. In essence camel-blueprint should only create *one* CamelContext and it should use the {{67-camel-2}} as the name of the CamelContext (eg. include the bundle id of the end user application). -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.