On 5/1/08, Jean-Sebastien Delfino <[EMAIL PROTECTED]> wrote: > > My 2c: > > +1 to promote OSGi to a first class Tuscany runtime environment > > +1 for an OSGi continuum build (thinking about a build profile that'll run > the Tuscany itest suite in an OSGi environment, similar to the profiles we > have for Web containers for example) > > Here's what I imagined we'd do: > 1. add OSGi entries to each of our JAR manifests > 2. have developers maintain them and pay attention to imports/exports > 3. use the OSGi build to detect API and SPI import/export violations > 4. find the best way to OSGi-enable 3rd party dependency JARs > > I realize that my suggestion [1] is not very popular and most people on > this list would prefer to come up with bigger bundles grouping several of > our JARs/modules. I don't think that the 'bigger aggregate bundle' approach > will work, but I'll be happy to watch people try it :) if they want to. > > With respect to [4] I find rather funny to see many projects out there > claim OSGi enablement without having OSGified their 3rd party dependencies. > I wonder how that works, can an OSGi-enabled project really leverage the > OSGi classloader isolation and versioning capabilities when 99% of the JARs > it requires are not OSGi bundles? I must be missing something... and I hope > we can do better in Tuscany with a real end-to-end OSGi enablement story :) > -- > Jean-Sebastien >
I agree with Sebastien's suggestions1-4. But I would like to suggest a slight variation to the first suggestion. 1. Use maven-bundle-plugin to introduce OSGi manifest entries into all the Tuscany modules, with auto-generated import/export statements. Modify itest/osgi-tuscany to run these modules under OSGi, with all 3rd party jars installed into OSGi using virtual bundles created on the fly. This step will provide a version of osgi-tuscany tests that is less prone to breakage than the one we have today. It will also help fix any remaining classloading issues that we have left in Tuscany (and hopefully help in maintaining the classloader isolation). This is not a big piece of work since this is just bringing together the different pieces that we already have. I will be happy to contribute the code towards this first step, so others can concentrate on what we really want to achieve in terms of modularity, distribution etc. We can also use this step to explore versioning - in particular about having multiple extensions referring to different versions of 3rd party libraries. This will be very useful for 4. Suggestions 2-3 are not requirements for OSGi, but these are clearly cases where OSGi technology can help Tuscany improve modularity. If we want to have explicitly hard-coded import/export statements in the modules to enforce modularity, that can be introduced in step 2. And I would expect that there will be more work in terms of building the distributions suitable for OSGi as well as non-OSGi after 1-4. Thank you... Regards, Rajini
