Yes, as JB said, you should use spec bundles from Apache Servicemix which support OSGi locator which means can find spec impls in OSGi container.
As to which spec bundles you should have for your case, if it’s web service endpoint, you actually can draw on cxf-specs features shipped with Apache CXF[1]. [1]http://repo2.maven.org/maven2/org/apache/cxf/karaf/apache-cxf/3.2.6/apache-cxf-3.2.6-features.xml ------------- Freeman(Yue) Fang Red Hat, Inc. FuseSource is now part of Red Hat > On Sep 17, 2018, at 4:28 PM, Jean-Baptiste Onofré <[email protected]> wrote: > > No, Java 11 has exactly the same approach. > > As said, we provide the spec bundle at ServiceMix, so you can install it. > > Regards > JB > > On 17/09/2018 09:30, lechlukasz wrote: >> This is exactly my problem, finding out the required bundles to install. >> >> As for now, I've found that 'canonical' SO answer: >> https://stackoverflow.com/questions/48204141/replacements-for-deprecated-jpms-modules-with-java-ee-apis/48204154#48204154 >> >> unfortunately, many of the listed artifacts are not OSGi-zed. >> >> On the other way, I'm missing details, how are Java's 'services' working in >> OSGi environment. For example, for JAXB, who will load the >> javax.xml.bin.JAXBContext implementation, the bundle from which the package >> javax.xml.bind is imported? >> >> I suppose I'm not the only person with that problem and there's some >> 'proper' list of bundles to install to use JAXB, JAX-WS etc. >> >> I suppose the solution for Java 10 will work in Java 11 too, so waiting for >> Java 11 will not fix anything authomatically? >> >> >> >> >> >> jbonofre wrote >>> With Java 9/10/11, as Freeman said, EE packages are not in separated >>> modules. So you have to either install the packages in the JDK (and >>> update jre.properties) or install the required bundles. >> >> >> >> >> >> -- >> Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html >> > > -- > Jean-Baptiste Onofré > [email protected] > http://blog.nanthrax.net > Talend - http://www.talend.com
