Return-Path: Delivered-To: apmail-camel-users-archive@www.apache.org Received: (qmail 71347 invoked from network); 29 Mar 2011 03:11:25 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 29 Mar 2011 03:11:25 -0000 Received: (qmail 25935 invoked by uid 500); 29 Mar 2011 03:11:25 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 25807 invoked by uid 500); 29 Mar 2011 03:11:24 -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 25797 invoked by uid 99); 29 Mar 2011 03:11:24 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 29 Mar 2011 03:11:24 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of willem.jiang@gmail.com designates 74.125.83.45 as permitted sender) Received: from [74.125.83.45] (HELO mail-gw0-f45.google.com) (74.125.83.45) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 29 Mar 2011 03:11:17 +0000 Received: by gwb19 with SMTP id 19so1518972gwb.32 for ; Mon, 28 Mar 2011 20:10:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:message-id:date:from:user-agent:mime-version:to :subject:references:in-reply-to:content-type :content-transfer-encoding; bh=RPUidKSMSjdIEt9+5pp4zORtPxSMYMoS9eD1J7YxlCE=; b=jcfFm64hF4PeS4Oa9mC1gCwWXg51rMJyjcKzRPLrxR6sgnyKc+2NnBo5gONJMBG6P0 3PZxT2rmgxkEzYDsvKZpo8YeowJXAgGYmHmCaIH5nIJPcCKyxgvhCB4guuyKDWmsoc4i EYuNnDUuHbt+9Dh5iTwc5QJWYpY9SuVm3JGIY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; b=JuWHzZf5lDQ7rMjOBN4ifWnTR8iknwrfY6Q2Y1mw+6qiE9k8b6UZUfVAA9ETWXcD4u +FxFBlTY9Ca79conBoeP6606UEvEXTbBmAaw04bp4YmfkyUaNDt2T2S8PqQLcyuTgX61 oJ6K5Rj6iBTo2aWlgZAbixgTX3uEUSHY4dA5c= Received: by 10.236.170.201 with SMTP id p49mr3007104yhl.302.1301368256711; Mon, 28 Mar 2011 20:10:56 -0700 (PDT) Received: from [192.168.0.158] ([125.34.4.110]) by mx.google.com with ESMTPS id b30sm2291452yho.16.2011.03.28.20.10.53 (version=SSLv3 cipher=OTHER); Mon, 28 Mar 2011 20:10:56 -0700 (PDT) Message-ID: <4D914DB9.5070106@gmail.com> Date: Tue, 29 Mar 2011 11:10:49 +0800 From: Willem Jiang User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.15) Gecko/20110303 Lightning/1.0b2 Thunderbird/3.1.9 MIME-Version: 1.0 To: users@camel.apache.org Subject: Re: type converter not loading References: <4D8C52C4.1040401@gmail.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org As we shipped the camel-spring and camel-blueprint at the same time, so the org.apache.camel.core.osgi is not exported as public class. The reason that we don't create another bundle of camel-core-osgi, is camel-spring bundle detect OSGi and no-OSGi environment rightly. Which means we could let camel-spring supports OSGi and no-OSGi platform at the same time. In most case, customer doesn't want to use the OSGi without any help of spring-dm or blueprint. If you want to create OSGiDefaultCamelContext yourself, you can wrap the camel-core-osgi bundle yourself. Willem On 3/29/11 6:01 AM, Donald Whytock wrote: > Okay...added camel-blueprint-2.7.0.jar, which required > org.apache.aries.blueprint-0.3.jar, which required > org.apache.aries.proxy-0.3.jar, which required > org.apache.aries.util-0.3.jar, asm-3.3.1.jar and > org.apache.felix.configadmin-1.0.4.jar. > > Tried creating an OsgiDefaultCamelContext, which worked in Eclipse but > not in Felix, since org.apache.camel.core.osgi isn't exported by > camel-blueprint. > > Tried creating a BlueprintCamelContext, but that seems to want a > BundleContext and a BlueprintContainer. I can get the BundleContext > easily enough, but where do I get the BlueprintContainer? > > Or am I going about this the wrong way? > > And yes, I'd rather do this in Java and not in XML. > > Don > > On Fri, Mar 25, 2011 at 3:05 PM, Scott England-Sullivan > wrote: >> If a project doesn't use Spring or Blueprint how do you create a CamelContext in an OSGi container programmatically? >> >> >> Thanks, >> Scott >> >> Scott England-Sullivan >> C. (217) 390-3058 >> H. (952) 440-4568 >> >> Sent from my iPhone >> >> On Mar 25, 2011, at 1:05 PM, Claus Ibsen wrote: >> >>> On Fri, Mar 25, 2011 at 3:52 PM, Donald Whytock wrote: >>>> Okay. Where is the OSGi version? Is that in a different jar? >>>> >>> >>> Yes >>> >>> camel-spring if using spring-dm >>> camel-blueprint if using blueprint >>> >>> >>> >>> >>> -- >>> Claus Ibsen >>> ----------------- >>> FuseSource >>> Email: cibsen@fusesource.com >>> Web: http://fusesource.com >>> Twitter: davsclaus >>> Blog: http://davsclaus.blogspot.com/ >>> Author of Camel in Action: http://www.manning.com/ibsen/ >> > -- Willem ---------------------------------- FuseSource Web: http://www.fusesource.com Blog: http://willemjiang.blogspot.com (English) http://jnn.javaeye.com (Chinese) Twitter: willemjiang