Hi Andreas,

Andreas Hartmann schrieb:
Hi Sling devs,

is it possible to access multiple JCR workspaces via a Sling application?

Basically yes. Your application may grab the Repository (or SlingRepository) service from the service registry and login to the repository specifying different workspaces to access.

You may also create a ResourceResolver around such sessions to make use of the ResourceResolver mechanism.

Out of the box, though, Sling itself (internally by means of the SlingHttpServletRequest) accesses only a single workspace. This particularly is the case for the resolution of the resource addressed by the request URL and the resolution of the script to handel the request.

 The WebDAV-related documentation mentiones a URL prefix,
but I couldn't find a corresponding URL syntax in the request processing documentation …

There is no such prefix (right now) because Sling itself only accesses a single workspace.

Hope this helps.

Regards
Felix

Reply via email to