Hi,

I would be happy to discuss a new functionality with you.

Question

I would like a function in felix-configadmin, that loads all of the
configuration from the storage, and if there are any changes, it applies
them.

Are you opened to have such functionality? If yes, we will try to provide a
pull request soon. Who knows, it might get into the specification one day.

The function would:

   - apply changes on already existing configurations
   - create new configurations if necessary
   - delete configurations that are removed from the storage


Sample use-cases

*Storing configuration for development in source control*

Imagine that you work with your colleagues on a project parallel. You start
an OSGi container from your IDE at the beginning of the day. You keep the
configuration of that OSGi container in Git / SVN. You commit your changes
and the other pulls it. The IDE could apply the changes to the
configuration without the necessity of restarting the OSGi container. We
work like this now, but we always have to restart the container as we can
apply the changes to the configuration coming from Git only in by
restarting.

*Deploying configuration to servers*

Imagine you want to have a clustered environment and all of the nodes have
the same configuration. You often have configuration changes that would not
need a server or even a component restart (changing the size of a cache or
authentication method, password of the SMTP server, etc.). If we have the
reload function in configadmin, we could apply the changes just by copying
the new configuration to the file system of every server, and then call
refresh on configadmin.


Regards,
*Balázs **Zsoldos *

Reply via email to