Felix Meschberger wrote:
Hi,

Am Dienstag, den 19.02.2008, 09:39 +0100 schrieb Carsten Ziegeler:
Hi,

what do you think about supporting running modes in Sling?
I'm thinking of providing different configuration sets for different
environments and having an easy way of switching.
One use case is to a have a pre-defined "development" running mode
where for example logging is set to debug mode, or some configuration settings for services are set to a more developer friendly way like caching turned off etc.

Now, support of running modes in non OSGi environments is much easier than supporting it in an OSGi env where services come from various bundles and might be optional etc.

So, I would like to get your opinion if you think that this is useful for OSGi environments at all.

Configuration comes from the ConfigurationAdmin Service. I suggest, that
we would base an implementation of such a feature on the Configuration
Admin Service. We might well think of actually provide such an extension
in the Apache Felix Configuration Admin implementation.

This would be something like a "configuration switch".

Yes, my first thoughts were providing the configuration to the config admin service, but obviously this creates problems as switching back would be difficult (switching back to what is the problem there).
But yes, if we would add support to the config admin itself, it could work.

This would be something like a configuration overwrite. The service reads the usual config from the persistent store and before providing the config to the services overwrites values from the running mode. The only problem could be if someone tries to change the config through the admin service.

Carsten
--
Carsten Ziegeler
[EMAIL PROTECTED]

Reply via email to