Return-Path: Delivered-To: apmail-camel-dev-archive@www.apache.org Received: (qmail 7228 invoked from network); 13 Mar 2009 08:24:10 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 13 Mar 2009 08:24:10 -0000 Received: (qmail 74027 invoked by uid 500); 13 Mar 2009 08:24:09 -0000 Delivered-To: apmail-camel-dev-archive@camel.apache.org Received: (qmail 74001 invoked by uid 500); 13 Mar 2009 08:24:09 -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 73990 invoked by uid 500); 13 Mar 2009 08:24:09 -0000 Delivered-To: apmail-activemq-camel-dev@activemq.apache.org Received: (qmail 73987 invoked by uid 99); 13 Mar 2009 08:24:09 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 13 Mar 2009 01:24:09 -0700 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; Fri, 13 Mar 2009 08:24:00 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id E5591234C046 for ; Fri, 13 Mar 2009 01:23:39 -0700 (PDT) Message-ID: <839300146.1236932619937.JavaMail.jira@brutus> Date: Fri, 13 Mar 2009 01:23:39 -0700 (PDT) From: "Guillaume Renault (JIRA)" To: camel-dev@activemq.apache.org Subject: [jira] Commented: (CAMEL-1456) support to create a default camel context in OSGi platefrom In-Reply-To: <1769861304.1236915279902.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-1456?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=50497#action_50497 ] Guillaume Renault commented on CAMEL-1456: ------------------------------------------ Thanks for the add. I'll check this as soon as i can, and then close the issue. > support to create a default camel context in OSGi platefrom > ----------------------------------------------------------- > > Key: CAMEL-1456 > URL: https://issues.apache.org/activemq/browse/CAMEL-1456 > Project: Apache Camel > Issue Type: Improvement > Components: camel-osgi > Reporter: Willem Jiang > Assignee: Willem Jiang > Fix For: 2.0.0, 1.6.1 > > > I got a user request for creating a default camel context without any spring application context involved. > " As you may remember, i did an integration in JOnAS 5.1.X application server (Ali Tokmen did it for JOnAS 4). JOnAS 5.X works on an OSGi gateway. My goal is to provide a service that could manage CamelContext. I use iPOJO to take care of the OSGi aspects, but that's just a detail here. The issue i have with the SpringCamelContext is when we get the factory, we then ask for a CamelContext (with the present factoryBean, we get a SpringCamelContext) but this one needs an ApplicationContext. In my case, i don't have it. The way i use my service is the following : > 1. First i'm deploying on the gateway the camel bundles that i need > 2. I then deploy my bundle that provides the CamelService on the OSGi GateWay > 3. I deploy an other bundle that uses this service. This bundle asks for CamelContext, set the routes it needs using the service, and so on ... > I never use spring in my environment, that's why i need to get a DefaultCamelContext, mainly because of the ApplicationContext that is needed." > So we can support the user to do this by adding a CamelContextFactory in the camel-osgi module. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.