| JSR 222 - Java Architecture for XML Binding (JAXB) 2.0 - OSGi-Compatible Version |
|
|
|
The main problem with the implementation of JAXB API is that it looks for the JAXB service provider and user's classes in thread's context class loader which is not suitable for an OSGi-based application. The provided API looks for the JAXB service provider and user's classes in the OSGi Environment even if provider's and user classes packages are not imported by the API bundle. OSGi Compatible JAXB API: org.dynamicjava.jaxb-api-2.1.jar OSGi Compatible JAXB API Source Code: org.dynamicjava.jaxb-api-2.1-src.zip Original API's Source Code was taken from: https://jaxb.dev.java.net/ Test ApplicationThe archive jaxb-api-test.zip contains an OSGi-based test application which has a JAXB Consumer Bundle that uses classes from the JAXB API. Alongside the JAXB API bundle provided by DynamicJava.org there are the JAXB class library provided with the Reference Implementation. The aim of this application not only to highlight the difference in the behavior between these different versions of the JAXB API when run in an OSGi Environment but also to prove that the JAXB API provided by DynamicJava.org is runnable with the OSGi Frameworks Felix, Equinox and Knopflerfish and in Java Environments JRE and JDK versions 1.5 and 1.6 - unlike other versions of the StAX API. |