Hi, Am 20.11.2012 um 00:26 schrieb bokie:
> Hi, > > I've manged to get a configuration mechanism setup as follows: > the config bundle depends on ConfigurationAdmin, picks up config files > using commons configuration > and updates the bundle that depends on the config data: > configurationAdmin.getConfiguration(PID, null).update(properties); > > However, when reading several articles I get the impression that the felix > implementation can automatically pick-up config files (property files) and > update the corresponding PID - is this correct, because i've tried several > approaches but nothing seems to work. > > Can the felix implementation automatically pick up config files? No. > Can the felix implementation automatically update a ManagedService when the > config file changes? No (because of not picking up config files). But: We have a tool/bundle called File Install. This allows placing configuration files in some location for File Install to pick them up and hand them over to ConfigurationAdmin just like you do manually. See [1] for details on File Install. Regards Felix [1] http://felix.apache.org/site/apache-felix-file-install.html --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]

