I think the overall bundle has been designed to do exactly this and
does (or was at least) exporting the org.osgi.service.blueprint
bundle.  However, Gemini does not export it, so having blueprint
bundle importing that package will only tie them to the Aries version
without any possibility to wire onto Gemini.

On Sat, Dec 3, 2011 at 18:40, David Jencks <[email protected]> wrote:
>
> On Dec 3, 2011, at 12:40 AM, Guillaume Nodet wrote:
>
>> On Sat, Dec 3, 2011 at 00:56, David Jencks <[email protected]> wrote:
>>> I still don't know what the problem is, but if you start the regions jar a 
>>> little later (start level 30) it works fine in both felix and equinox.
>>>
>>> I've committed the regions stuff and also some changes to use the little 
>>> blueprint bundles rather than the all-in-one since using the smaller 
>>> bundles is strongly considered best practice by the authors.
>>
>> I disagree.  The small jars import the blueprint API and that would
>> make the coexistence of Aries and Gemini implementations much harder
>> (if not impossible).  The way it can be done now is exactly because
>> each implementation uses its own version of the api and the
>> implementation must check the classspace consistency before extending
>> a blueprint bundle.  If we use the small jars, both implementations
>> may use the same packages and the discrimination against the api would
>> fail.
>>
>
> That's a desirable goal.  I think there's an error in aries blueprint at the 
> moment that prevents this from working.  The spec says (121.13.5):
>
> To mitigate type incompatibility problems, a Blueprint extender must export 
> the org.osgi.service.blueprint package. In the uses: directive, it should 
> list any packages of classes that can be shared between the Blueprint 
> extender and the Blueprint bundle. Blueprint bundles should import this 
> package.
>
> Both aries blueprint api and aries blueprint core export this package, and 
> there's no uses clause.  I think that the aries api bundle must not export 
> this package: then a blueprint bundle will wire to some bundle that contains 
> a blueprint extender, which would be either aries or gemini, even if both 
> share the same api bundle.
>
> What do you think?
>
> thanks
> david jencks
>
>>>
>>> thanks
>>> david jencks
>>>
>>> On Dec 2, 2011, at 12:35 AM, David Jencks wrote:
>>>
>>>> I've been cleaning up my regions code in hopes of committing it shortly, 
>>>> and just pushed the current version to github 
>>>> (https://github.com/djencks/karaf) (region branch).
>>>>
>>>> After seeing 3 regression tests fail I discovered that karaf won't start 
>>>> under equinox when the region jar is installed.  If anyone wants to take a 
>>>> look or has any ideas what might be going on I'd appreciate it.
>>>>
>>>> I commented out the "use equinox" line of the 3 failing tests but you can 
>>>> try starting the apache-karaf server under equinox.
>>>>
>>>> thanks
>>>> david jencks
>>>
>>
>>
>>
>> --
>> ------------------------
>> Guillaume Nodet
>> ------------------------
>> Blog: http://gnodet.blogspot.com/
>> ------------------------
>> Open Source SOA
>> http://fusesource.com
>



-- 
------------------------
Guillaume Nodet
------------------------
Blog: http://gnodet.blogspot.com/
------------------------
Open Source SOA
http://fusesource.com

Reply via email to