Hi,

Sorry for the delay ...

Am Donnerstag, den 13.01.2011, 13:39 +0000 schrieb Vidar Ramdal: 
> I want to store some configurations in an alternative
> PersistenceManager (which in this case stores configurations in a
> content repository).
> Thus, I have written a class implementing o.a.f.cm.PersistenceManager,
> called RepositoryPersistenceManager (RPM).
> 
> When the application is starting initially, RPM's exists and load
> methods are invoked as expected. But when altering a configuration via
> the Felix Web Console, the modifications are not written back to RPM,
> but rather, to the default PersistenceManager (file-based).
> 
> Am I missing something here? Shouldn't
> org.apache.felix.cm.impl.ConfigurationManager write back changes for a
> configuration to the PersistenceManager the configuration was loaded
> from?

No, you are not missing anything. Existing configuration should be
written back to the original PersistenceManager.

New configuration, though, is actually written back to the persistence
manager with the highest service ranking. If you don't set the
service.ranking property in your RPM, chances are, that your new
configurations will be written to the file system persistence manager.

Regards
Felix

> 



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to