Hi Matt, > On 24 Oct 2017, at 21:54, Matt Ryan <[email protected]> wrote: > It is still unclear to me how this works in terms of configuration files, > and how this would work for the CompositeDataStore. This is how I believe > it would work for two FileDataStores in the composite: > > FDS config 1: > > path=datastore/ds1 > role=local1 > > FDS config 2: > > path=datastore/ds2 > role=local2 > > CompositeDataStore config: > > local1:readOnly=false > local2:readOnly=true > > Something like that anyway.
Yes, I’d see something like this too. > My questions then are: How do we store both FileDataStore configuration > files when both have the same PID? What is the file name for each one? > And how to do they associate with the FileDataStoreFactory? For the factory services we use suffixes for the config files: org.apache.jackrabbit.oak.plugins.blob.datastore.FileDataStoreFactory-local1.cfg org.apache.jackrabbit.oak.plugins.blob.datastore.FileDataStoreFactory-local2.cfg org.apache.jackrabbit.oak.plugins.blob.datastore.FileDataStoreFactory-other.cfg OSGi knows that the […].FileDataStoreFactory is a factory and creates as many instances as needed, binding the provided configurations. Regards, Tomek -- Tomek Rękawek | Adobe Research | www.adobe.com [email protected]
