I added a fix under http://svn.apache.org/viewvc?rev=906646&view=rev.

Thanks,
Raymond

--------------------------------------------------
From: "Raymond Feng" <[email protected]>
Sent: Thursday, February 04, 2010 8:30 AM
To: <[email protected]>
Subject: Re: EquinoxServiceDiscoverer needs to discover services only from 3rd bundles related to tuscany 2.x bundles

Good point. It seems that we need to combine the SCA-Header with the package name of the class to decide.

Thanks,
Raymond
--------------------------------------------------
From: "Luciano Resende" <[email protected]>
Sent: Wednesday, February 03, 2010 9:49 PM
To: <[email protected]>
Subject: Re: EquinoxServiceDiscoverer needs to discover services only from 3rd bundles related to tuscany 2.x bundles

On Wed, Feb 3, 2010 at 9:10 PM, Raymond Feng <[email protected]> wrote:
Hi,

I assume you run both Tuscany 1.x and 2.x in the same OSGi framework. We'll
have the following cases:

1) Tuscany 1.x bundle
2) 3rd party extension bundle for Tuscany 1.x
3) Tuscany 2.x bundle
4) 3rd party extension bundle for Tuscany 2.x

For 3), we introduced a header in the MF (SCA-Version: 1.1) so that Tuscany
2.x runtime can discover them. We'll probably require 4) to add the
SCA-Version header too to distinguish it from case 1) and 2). If no
objections, I'll fix the check in EquinoxServiceDiscoverer.

For 1) and 2), you probably have to make sure the version range of
Import-Package headers to be something like [1.0.0, 2.0.0).


How about when the 1.x and 2.x share common 3rd party dependencies ?

--
Luciano Resende
http://people.apache.org/~lresende
http://lresende.blogspot.com/

Reply via email to