Hi, Am Mittwoch, den 14.05.2008, 21:54 +0200 schrieb peter.doornbosch: > Hi, > > And there is a simple command line utility here: > https://opensource.luminis.net/confluence/display/SITE/OSGi+Configuration+Admin+command+line+client
This is really cool. Wasn't aware of that. Thanks. Regards Felix > > Regards, > Peter > > On 14 May , 2008, at 15:44 , Felix Meschberger wrote: > > Hi David, > > > > Am Mittwoch, den 14.05.2008, 14:38 +0100 schrieb David Bosschaert: > >> Hi all, > >> > >> I started using the Felix Configuration Admin Service but could not > >> find any information on how to actually supply the Config Admin with > >> configuration information so that it calls updated() with some > >> meaningful information on my ManagedServices. I think this can be > >> done > >> through code, but is there also another way to provide the config > >> admin with its data? E.g. via a properties file, some UI or > >> something? > > > > Yes, the primary way is by code: You call the > > ConfigurationAdmin.getConfiguration method and on the returned > > Configuration object you call the update(Dictionary) methods to set > > the > > configuration. This causes the updated() method of the respective > > ManagedService to be called. > > > > Another option for providing the configuration are the fileinstall > > bundle, which takes configuration files from defined filesystem > > locations (.cfg files) and loads them into the ConfigurationAdmin. > > > > Finally, there is the OSGi Console (formerly known as the Sling > > Management Console), which is a web-based tool allowing amongst other > > things to manage Configuration. The OSGi console is currently in the > > process of IP Clearance and will be moved from the Apache Sling > > project > > to the Felix project later this week. > > > > Hope this helps. > > > > Regards > > Felix > > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

