Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 47785200C30 for ; Tue, 7 Mar 2017 18:56:58 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 461FA160B68; Tue, 7 Mar 2017 17:56:58 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 908F9160B65 for ; Tue, 7 Mar 2017 18:56:57 +0100 (CET) Received: (qmail 98393 invoked by uid 500); 7 Mar 2017 17:56:56 -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 98377 invoked by uid 99); 7 Mar 2017 17:56:56 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Mar 2017 17:56:56 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id EF7C7C3157 for ; Tue, 7 Mar 2017 17:56:55 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.314 X-Spam-Level: ** X-Spam-Status: No, score=2.314 tagged_above=-999 required=6.31 tests=[KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_DNSWL_NONE=-0.0001, URIBL_BLOCKED=0.001, URI_HEX=1.313] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id S7faYDGJZlRt for ; Tue, 7 Mar 2017 17:56:51 +0000 (UTC) Received: from www221.your-server.de (www221.your-server.de [188.40.30.104]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 2AAFB5F5C4 for ; Tue, 7 Mar 2017 17:56:51 +0000 (UTC) Received: from [185.8.243.205] (helo=[192.168.1.169]) by www221.your-server.de with esmtpa (Exim 4.85_2) (envelope-from ) id 1clJLm-0006cE-IJ for users@camel.apache.org; Tue, 07 Mar 2017 18:56:43 +0100 Subject: Re: Camel with Karaf + Blueprint To: users@camel.apache.org References: <1488909001640-5795036.post@n5.nabble.com> From: Andreas Gies Message-ID: Date: Tue, 7 Mar 2017 18:56:35 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.7.0 MIME-Version: 1.0 In-Reply-To: <1488909001640-5795036.post@n5.nabble.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Authenticated-Sender: andreas@wayofquality.de X-Virus-Scanned: Clear (ClamAV 0.99.2/23182/Tue Mar 7 14:02:26 2017) archived-at: Tue, 07 Mar 2017 17:56:58 -0000 Hi, from your description it sounds that haven't exported the instances you would like to access as services. It is not sufficient to export the packages. The instances that shall be available in other bundle must be exported as services and then they can be referenced as service in your context. As I am not using Blueprint anymore, my memory is a bit dusty on the syntax, but if you look for service export and service reference in the blueprint doc you should be fine. You might want to read up on OSGi services in general to understand how services can be exposed and referenced with user defined properties to make sure you get the right instance (in case you have more than one instance of a particular service). Hope that helps Andreas On 07/03/17 18:50, kumar wrote: > Hi , > > I am trying to use Camel(2.18.2) + karaf(4.0.8)+blueprint(Aries) for my > migration as suggested by experts. > > Now I am able to load all my bundles but unable to start Camel context due > to following errors: > > 1. I have 4 xml files. first one is root file > 2. seconnd, third , four are routes and beans files(Routes aand beans are in > different files) > 3. These Camel Blueprint DSL route beans are not able to access beans inside > bundle A > 4. I am trying to load all xml files as separate bundle named -"Conf" > > Somehow Conf bundle not able to access/ load beans from other active bundles > in Karaf Container. > > Please help me on how to load beans from other bundles. > > I did export all packges from other bundles. > > Thanks, > Kumar > > > > > -- > View this message in context: http://camel.465427.n5.nabble.com/Camel-with-Karaf-Blueprint-tp5795036.html > Sent from the Camel - Users mailing list archive at Nabble.com.