Hi, Using the current spec, what would be the best way to implement the purging of configuration data prior to regular operations? I want all configurations to be removed, before CAS starts notifying MS and MSF to basically start with a clean environment under certain conditions.
The problem I am facing right now with Felix CAS 1.4 is the asynchronous nature of the notifications. Upon startup, CAS notifies all MS and MSF with the previously persisted config only to be told then by my code to purge them all. Depending on the timing on startup I sometimes see it work as intended and sometimes the purging comes after the new creation of the configurations leaving me without any. The only (ugly) solution I can think of working with Felix ConfigAdmin is to wait for the registration of the PersistenceManager (happens before ConfigAdmin registration) and telling it to delete all known configurations. That way, CAS starts with nothing and can then be initialized later with the fresh config information. Felix, do you have a better idea? Thanks, Tim.
_______________________________________________ OSGi Developer Mail List [email protected] https://mail.osgi.org/mailman/listinfo/osgi-dev
