You could potentially configure your framework like this when you are running on Java 6:

    org.osgi.framework.system.packages.extra=javax.activation;version=1.1.1

The the system bundle will export the package with two versions or install a extension bundle to do this if you don't control the framework configuration.

-> richard

On 8/25/10 11:32, Andrea Zoppello wrote:
Hi Ben,

Yes you're rigth there's no authoritative documentation on that. I get this information from here:

http://www.oracle.com/technetwork/java/index-jsp-139225.html

where it states:

" Note: Unless you're using Java SE 6, you will also need the JavaBeans Activation Framework (JAF) extension that provides the javax.activation package. We suggest you use version 1.1.1 of JAF, the latest release. JAF is included with Java SE 6. "

So from the above i understand that JDK 1.6 include JAF 1BTW probably you're right it's my misunderstanding :-) BTW i've solved my problems creating a whole bunlde that "wraps in the same bunlde "activation1.1.1.jar" and "javax.mail 1.4.1" and forcing my bundles to import package from this one.

Andrea


Il 25/08/2010 16:34, BJ Hargrave ha scritto:
There is no authoritative list of the packages and their versions for each JRE. So each framework implementation (e.g. Equinox) makes their best effort to define a package list for each JRE. However, the version number for each package in a JRE is unknown. You say javax.activation is 1.1.1 in Java 6. Where is that authoritatively documented?

In any case, there is nothing the OSGi specifications can say on this until there exists some authoritative package list for each JRE. You may want to take this question to the framework impl's mail list if you want to discuss the specific information the framework impl is using for the packages exported from the JRE.
--

*BJ Hargrave*
Senior Technical Staff Member, IBM
OSGi Fellow and CTO of the _OSGi Alliance_ <http://www.osgi.org/>_
[email protected]_ <mailto:[email protected]>       

office: +1 386 848 1781
mobile: +1 386 848 3788







From: Andrea Zoppello <[email protected]>
To: OSGi - Dev <[email protected]>
Date: 2010/08/25 10:19
Subject: [osgi-dev] Which version should use the system bundle when exporting javax packages???
Sent by: [email protected]

------------------------------------------------------------------------



Hi all,

I've a doubt on the way the "system bundle" export some package and the
version
used.

In particular i'm using JDK1.6 ( With equinox ) and when i start the
OSGi container
and from console i raise  a "packages javax.activation" it seems that
the system bundle
is exposing the "javax.activation" package with version "0.0.0".

Now my doubt arise because if i'm not wrong, the activation packages of
the JDK 1.6 should be
the 1.1.1 version of the JAF framework.

So the question is:

Is correct that the system bundle export the "javax.activation"  package
with version "0.0.0" or it should
use the version "1.1.1"???

My problem is that in my system i've bundles importing the
javax.activation using the following directive:
 javax.activation;version="[1.1.1,2.0.0)" and that bundle were not
resolved.


Andrea
_______________________________________________
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
_______________________________________________
OSGi Developer Mail List
[email protected]
https://mail.osgi.org/mailman/listinfo/osgi-dev

Reply via email to