Hi, you can just put your config in a directory which has the name of the run mode, the Sling launchpad supports this.
Regards Carsten 2014-03-26 16:19 GMT+01:00 Bertrand Delacretaz <[email protected]>: > Hi, > > For SLING-3479 we're looking for a way to switch between the tar and > mongo backends when running on Oak. > > Using run modes should allow for switching between those configs - do > we have an out-of-the box mechanism for OSGi configs that are selected > by run mode before the content repository is active? > > What comes to mind is creating two bundles, one for each run mode, and > have their activator create default configs for each backend if no > config is present yet, as we do in the jackrabbit server bundle > activator (verifyConfig method). But maybe there's a simpler way that > does not require configuring additional installer components. > > -Bertrand > > [1] > https://svn.apache.org/repos/asf/sling/trunk/bundles/jcr/jackrabbit-server/src/main/java/org/apache/sling/jcr/jackrabbit/server/impl/Activator.java > -- Carsten Ziegeler [email protected]
