So you raised two points that have my attention. Point 1: .. you should let jaxrs-api to load the jaxrs impl class, so in your code you just use jaxrs api.
Point 2: Also servicemix specs implement a OSGiLocater, which do the trick that make SPI works in OSGi world. ----------------------------- In regards to point 1 ----------------------------- I don't know how to achieve point 1 as I am using specific annotations that relate to a resteasy provider (Jackson - JSON Provider). I want to use Jackson as I like the quality of the JSON it produces. How am I to achieve this? Below is a brief outline of what I am doing. I am attempting to integrate Reasteasy with OSGI (Via ServiceMix 4.4.0), and the way Resteasy works it's providers via resource files in the META-INF/services directory. Resources required: * resteasy-jaxrs-2.2.3.GA.jar/META-INF/services/javax.ws.rs.ext.Providers * resteasy-jaxrs-2.2.3.GA.jar/META-INF/services/javax.ws.rs.ext.RuntimeDelegate * resteasy-jackson-provider-2.2.3.GA.jar/META-INF/services/javax.ws.rs.ext.Providers Explained here: * https://issues.jboss.org/browse/RESTEASY-640 My current integration efforts: * https://bitbucket.org/mark1900/resteasy-osgi-embedded * https://bitbucket.org/mark1900/resteasy-osgi-service ----------------------------- In regards to point 2 ----------------------------- Do you have any sample code as to what this would look like? -- View this message in context: http://servicemix.396122.n5.nabble.com/OSGi-classpath-getResources-issue-in-ServiceMix-4-4-0-tp5137185p5137796.html Sent from the ServiceMix - User mailing list archive at Nabble.com.
