java - How do I edit the property file that my osgi managed service implementation uses? -
i using apache felix osgi framework implementation. have class implementing managedservice in order properties file using configadmin service. able manually edit properties file , receive updates in managed service. how edit properties in file managed service? editing dictionary update method has no effect.
the configurationadmin service has 2 parts:
- the managedservice, component receives configuration.
- the configurationadmin service, can used set, update or delete configuration.
in other words, if want change own configuration, need talk configurationadmin service that.
by way, in spec there "file" holding configuration. configurationadmin decide how persist (in file, database, whatever). management of configurations goes through configurationadmin service.
Comments
Post a Comment