Return-Path: Delivered-To: apmail-camel-users-archive@www.apache.org Received: (qmail 48538 invoked from network); 24 May 2010 20:54:22 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 24 May 2010 20:54:22 -0000 Received: (qmail 34276 invoked by uid 500); 24 May 2010 20:54:22 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 34235 invoked by uid 500); 24 May 2010 20:54:21 -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 34227 invoked by uid 99); 24 May 2010 20:54:21 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 24 May 2010 20:54:21 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [62.75.158.78] (HELO mail.liquid-reality.de) (62.75.158.78) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 24 May 2010 20:54:13 +0000 Received: from [10.0.0.105] (HSI-KBW-091-089-018-199.hsi2.kabelbw.de [91.89.18.199]) by mail.liquid-reality.de (Postfix) with ESMTP id 508D5B38004 for ; Mon, 24 May 2010 20:53:53 +0000 (UTC) Message-ID: <4BFAE74A.4090508@die-schneider.net> Date: Mon, 24 May 2010 22:53:30 +0200 From: Christian Schneider User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; de; rv:1.9.1.9) Gecko/20100317 Lightning/1.0b1 Thunderbird/3.0.4 MIME-Version: 1.0 To: users@camel.apache.org Subject: Re: How to get Source jar for camel-spring-osgi? References: <4BF8DB40.9040907@die-schneider.net> <4BFA30F9.6070200@gmail.com> In-Reply-To: <4BFA30F9.6070200@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org Hi Willem, how about accessing the bundle or instanting a class from camel-osgi in an Activator class in the camel-spring jar. This way the camel-osgi bundle will be activated when in osgi. When outside of osgi the Activator will be ignored. Does this make sense? If this works then using an activator would also be a nice solution for the other camel components so they can offer their features as osgi services. Eventually this could even mean that we would not need a camel-osgi bundle anymore. Or at least the bundle would not have to load something from the compenents in an active fashion. Greetings Christian Am 24.05.2010 09:55, schrieb Willem Jiang: > Hi Christian, > > Please see my comments in the mail. > > Christian Schneider wrote: >> Hi all, >> >> I have succeeded for most camel jars to have a source attachment in >> eclipse pde mode now. The component camel-spring-osgi produces an >> empty source jar though. >> The problem seems to be that the component simply reexports the jars >> for camel-osgi and camel-spring. > Yes, camel-spring-osgi just repacks the camel-osgi and camel-spring. >> >> Any idea how to get the source attachment for this one? I guess this >> also is a problem when using maven in osgi. > > I don't think there is a easy way to resolve this issue. > >> >> Anyway I did not really understand why camel-osi and camel-spring >> have to be bundled into one jar. I read that it has to do with the >> loading sequence somewhere but canĀ“t this also be solved when the >> jars are separate. > You can resolve the loading sequence issue by letting camel-osgi > bundle be loaded first, in this way you still can access camel-osgi > and camel-spring source code as you want :) > >> >> Greetings >> >> Christian >> > > Willem > -- ---- http://www.liquid-reality.de