Wednesday, April 27, 2011

sling:OsgiConfig for multiple run modes

You can have multiple run modes and have CQ (or Sling.. I don't know) select proper sling:OsgiConfigs.

For example,  if your run modes are a,b config.a.b are applied:

  • author,production
    • /apps/<foo>/*
  • author,staging
    • /apps/<foo>/*
  • publish,production
    • /apps/<foo>/config.publish.production/*

Probably order of run modes are important. And I'm not sure if more than two run modes will work.


  • author,production,foo,bar
    • /apps/<foo>/*
    • /apps/<bar>/*
    • /apps/<foo>/config/*
    • /apps/<foo>/*

test what configuration is selected...

No comments:

Post a Comment