You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@felix.apache.org by David Bosschaert <da...@gmail.com> on 2008/05/14 15:38:46 UTC

Config Admin noob question

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?

Thanks!

David

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org


Re: Config Admin noob question

Posted by David Bosschaert <da...@gmail.com>.
Thanks Felix, that helped!

David

2008/5/14 Felix Meschberger <fm...@gmail.com>:
> 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: users-unsubscribe@felix.apache.org
> For additional commands, e-mail: users-help@felix.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org


Re: Config Admin noob question

Posted by Felix Meschberger <fm...@gmail.com>.
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: users-unsubscribe@felix.apache.org
> > For additional commands, e-mail: users-help@felix.apache.org
> >
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
> For additional commands, e-mail: users-help@felix.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org


Re: Config Admin noob question

Posted by "peter.doornbosch" <pe...@gmail.com>.
Hi,

And there is a simple command line utility here:
https://opensource.luminis.net/confluence/display/SITE/OSGi+Configuration+Admin+command+line+client

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: users-unsubscribe@felix.apache.org
> For additional commands, e-mail: users-help@felix.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org


Re: Config Admin noob question

Posted by Felix Meschberger <fm...@gmail.com>.
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: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org