I'm using Felix ConfigurationAdmin 1.8.6 (which is included in OSGI enRoute) and i'm not able to get it working with files in a folder.
I downloaded the sources to see what's going on, but i still can't figure out...
First, I added the run property felix.cm.dir, specifying the folder I want to configure my services. From what i see debugging, it's working fine, but my managed service get a null properties map.
Next, i discovered my properties must have the following format to be read (with doublequotes):
key="value"
Still, i get a null properties map...
Then i discovered that after reading my properties, the FilePersistenceManager.seek() only returns the Dictionary if it DOESN'T contains service.pid property, OR it contains that property and it equals the filename. Before comparing, it replaces the dots with slashes, so it never equals... I better not specify service.pid property anyway, i don't see the point.
When the Dictionary comes back to CachingPersistenceManagerProxy, it only get cached if the Dictionary contains the service.pid ou factory.pid property; which never happens.
Am i missing something?