Hi,

Claude Vedovini schrieb:
> Hi all,
> 
> I use the sling web app on jBoss and I have issue with the location of
> the sling home folder.
> 
>>From what I read in [1] it seems one can setup the sling.home property
> either using the sling.property or the web.xml file, both located
> inside the sling war file, am I right?

For the Sling Web app, the sling home folder is set through the
sling.home init-property of the Sling Servlet or the Sling Servlet Context.

If neither is set, the sling home folder is derived from the servlet
context path prepended with "sling" and the path converted to a single
name replacing slashes by underscores.

E.g. sling.home for the web app at /sling/i1 is "sling/_sling_i1".

This ensures sensible default values and prevents collisions if the
sling web app is installed multiple times in the same container.

> 
> If so, how may I deliver an application that can be deployed on
> different environments (test, UAT, prod) without repackaging the whole
> stuff each time?

If you don't really care, where your sling.home is, you might be happy
using the default value.

Otherwise, there is not currently another option that to repackage.

If you have a good idea on how to prevent this, we are certainly
open-ears ;-)

Hope this helps.

Regards
Felix

Reply via email to