I think that would work, but I'm just a bit relunctant because that in
the mean time (until Gemini releases a fix, which I'm not sure would
happen in a short time frame), people won't be able to have a simple
way to deploy Gemini on Karaf.

What kind of advantages do you see in deploying the small aries
bundles ? The only one I can see would be to not be tied to the
implementation bundle, but only to the API, so that updating the
implementation does not need a refresh for all bundles.
Unfortunately, bundles should import the org.osgi.service.blueprint
package which is exported by the blueprint-core bundle, so they then
get wired onto it.

On Sun, Dec 4, 2011 at 02:57, David Jencks <[email protected]> wrote:
> Hi Guillaume,
>
> I'm not quite sure what you are suggesting.  Hopefully we agree :-)
>
> After looking at the gemini blueprint bundles I agree that none of them seem 
> to export the org.osgi.service.blueprint package.  My conclusion is that the 
> gemini blueprint implementation is not spec compliant and the spec defined 
> way of making sure the extender has the right bundles won't work with gemini, 
> so we don't really even need to worry about the problem in aries.
>
> I think:
>
> 1. we can keep the small aries blueprint bundles, they are not causing any 
> problems.
>
> 2. we should get aries to remove the org.osgi.service.blueprint export from 
> the api bundle.
>
> 3. someone who wants gemini can import a gemini specific package such as  
> org.eclipse.gemini.blueprint.extender and not import the spec-required 
> org.osgi.service.blueprint.
>
> 4. we might consider suggesting to gemini that they fix their blueprint 
> extender?  (I find eclipse pretty impenetrable even for projects where I know 
> all the developers and am a committer, so I'm not likely to try this).
>
> WDYT?
>
> thanks
> david jencks
>
> On Dec 3, 2011, at 11:28 AM, Guillaume Nodet wrote:
>
>> 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
>



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

Reply via email to