Hi I would suggest to define a "stanbol.home" and interpret such path relative to this folder. Bundles that use the commons.web bundle would than to make sure (e.g. in the activate method) to copy such files to the specified directory.
best Rupert Westenthaler On Mon, Mar 28, 2011 at 11:33 AM, Fabian Christ <[email protected]> wrote: > Hi, > > I'm working on https://issues.apache.org/jira/browse/STANBOL-120 > > The idea is to have a commons web bundle as the central point to > manage and handle all JAXRS resources that are provided by other > bundles. New bundles can register theirs JAXRS resources at the > commons web bundle. The commons web bundle makes all resources > available. > > For this, the commons web bundle needs to load static resources (e.g. > templates) from other bundles. As I am not that familiar with OSGI > yet, here is my question about OSGI and class loading. Is it possible > to load resources from another bundle via classpath? Is it possible to > export e.g. the META-INF folder of a bundle and make it available to > other bundles? > > -- > Fabian > -- | Rupert Westenthaler [email protected] | Bodenlehenstraße 11 ++43-699-11108907 | A-5500 Bischofshofen
