Thanks for pointing me to the right place. Please tell me now if I get it right:
Each bundle can provide an initial content, specifying it into its own manifest file, using the header named Sling-Initial-Content. So, for example, if I need to have a content such as /var/sling I should have something like the following line in my manifest: Sling-Initial-Content: SLING-INF/content/var, SLING-INF/content/var/sling Now, I stopped the bundle org.apache.sling.jcr.jackrabbit.server and started my custom one, so at first I guessed that, if some content was loaded, I would find its definition in the bundle I stopped. Needless to say that I didn't find anything like that in the jackrabbit.server manifest, so I tried a deep search in all the sources, but with no luck. Where am I wrong here? Thanks again Ale On Apr 21, 2011, at 11:19 AM, Bertrand Delacretaz wrote: > Hi, > > On Thu, Apr 21, 2011 at 10:59 AM, Alessandro Novarini > <[email protected]> wrote: >> ...When/Where does the repository get populated with the initial content >> structure? >> What is the class/service responsible for that? > > See http://sling.apache.org/site/content-loading.html - several Sling > bundles include content that's loaded with this mechanism. > >> >> For example: Sling at boot looks for something into /var/sling; why is it >> sure that the path exists?... > > A service that requires that path (or any other repository node) to > exist should either create it (maybe using that initial content > mechanism) or fail gracefully. If you're seeing errors that might be a > bug. > > -Bertrand
