Hi, Since we are talking OSGi, this looks like an appropriate use case for the PAX URL classpath protocol. It provides means to lookup resources in any other deployed bundle, either by specifying its symbolic name or by performing a container-wide search.
It worked like a charm for me with a use case that involved Facelets and loading taglibs from other bundles under Karaf. -- Raul. On 13 Nov 2011, at 00:02, "Christian Müller" <christian.muel...@gmail.com> wrote: > We found another library/dependency which JB can bundle... :-) I will > provide a patch for it later... > I discussed this with JB that this should of cure also work in OSGI in > different scenarios: > 1) the XSD is packaged together with the route in an OSGI bundle > 2) the XSD is packages in another OSGI bundle (because it is used in > multiple different OSGI bundles) > 3) the XSD is located somewhere in the file system > 4) the XSD is available somewhere over http > > All this should be possible. For 2), the user may have to use fragment > bundles or "require bundle". I will work on it later... > > Best, > Christian