Vadim Gritsenko wrote:

Sylvain Wallez wrote:


Or we could also have a RepositorySelector and select a repository using the first path element.


Instead of path element, you could use subprotocol

jcr:repo1://path/


I like it, as it allows to use jcr://path to use the default (or single) repository.

Hmm... that may be a good option as an application also need to access a repository directly and not only through a source. Hmm...


Yes, applications should have programmatic access to the repository. Are you thinking about registering all repositories in cocoon.xconf?


Exactly. The JCRSourceFactory will then just be one particular client of these components.

Sylvain

--
Sylvain Wallez                                  Anyware Technologies
http://www.apache.org/~sylvain           http://www.anyware-tech.com
{ XML, Java, Cocoon, OpenSource }*{ Training, Consulting, Projects }



Reply via email to