Hi,

thanks for the information!

I see that for example aries blueprint bundle contains the osgi blueprint
api and I now it seems to be a bit more clear for me why.

However I am confused with the org.osgi.service.jdbc package. What should
contain this one? We have several JDBC drivers so it would not be a good
idea to take it into every of them. Anyway it is not a good idea to change
the jars the 3rd party companies give for us.

If I take osgi-enterprise.jar into the classpath that contains the
org.osgi.service.jdbc package I will have org.osgi.blueprint package in my
classpath twice (ones from aries blueprint and ones from the
osgi-enterprise). I solved it by excluding the aries-blueprint-api but I
can imagine other similar cases where the solution is not that easy.

Till now it seemed to me that although OSGI let's us having the same
packages with multiple versions in the same container the developers and
admins should be aware of having the same API more than ones from the same
major version (where the newer is surely compatible with the older one).

Regards,
Balazs Zsoldos
Software Architect
Mobile: +36-70/594-92-34

Everit Kft.
https://www.everit.biz




On Tue, May 8, 2012 at 2:53 PM, BJ Hargrave <[email protected]> wrote:

> These companion code jars are not really intended for runtime use. They
> are intended to compile time use. It is expected that at runtime, some
> other jar, such as the implementation jar, would export the related package.
>
> The companion code jars are companions to a specification and thus contain
> the API for the complete content of the specification. You are free to
> repackage the API as you see fit.
>
> --
>
>  *BJ Hargrave*
> Senior Technical Staff Member, IBM
> OSGi Fellow and CTO of the *OSGi Alliance* <http://www.osgi.org/>*
> **[email protected]* <[email protected]>
>
> office: +1 386 848 1781
> mobile: +1 386 848 3788
>
>
>
>
>
>
> From:        Balázs Zsoldos <[email protected]>
> To:        [email protected],
> Date:        2012/05/08 06:26
> Subject:        [osgi-dev] OSGI cmpn and enterprise jars
> Sent by:        [email protected]
> ------------------------------
>
>
>
> Hi,
>
> I would have a couple of question about the cmpn and enterprise jars.
>
> Why are there two jars with almost the same content. I need for example
> the jdbc DataSourceFactory interface so I use the enterprise jar. However
> if I need something from the cmpn jar and I also use Blueprint I will meet
> the problem that there are two jars with the same package will exist. Now
> if:
>
>    - osgi enterprise starts
>    - blueprint container starts
>    - compendium starts
>    - a bundle that uses the BlueprintListener interface to catch
>    Blueprint events starts
>
> then the bundle will not catch the events as the bundle may use different
> interface than the blueprint container.
>
> Is there any practical reason for this or is there a jar that merges the
> two?
>
> Regards,
> Balazs Zsoldos
> Software Architect
> Mobile: +36-70/594-92-34
>
> Everit Kft.
> *https://www.everit.biz* <https://www.everit.biz/>
>
> _______________________________________________
> OSGi Developer Mail List
> [email protected]
> https://mail.osgi.org/mailman/listinfo/osgi-dev
>
>
> _______________________________________________
> OSGi Developer Mail List
> [email protected]
> https://mail.osgi.org/mailman/listinfo/osgi-dev
>
_______________________________________________
OSGi Developer Mail List
[email protected]
https://mail.osgi.org/mailman/listinfo/osgi-dev

Reply via email to