Branches, revision/version history, etc. are concepts that come from version control systems (like cvs, svn, etc.) are you familiar with those?
Basically what Guo Du tried to tell you is that you shouldn't (mustn't actually) use different workspaces to separate different users (clients, applications, whatever_it's_called_in_your_case) because there's certain information that's shared among the workspaces (branches, version history, etc.) and also because the creators of JCR advise against it stating that "that's not what workspaces were meant for". I suggest you read Mr. Nuescheler's "David's Model..." at http://wiki.apache.org/jackrabbit/DavidsModel As for the single repository with multiple apps, yes, separating each app on its own branch of the repository tree is a possible solution. So, you'll have something like this stored: / /AppA /AppA/some/content/for/AppA /AppB /AppB/some/content/for/AppB /AppC /AppC/some/content/for/AppC ... ... /AppZ and so on. You'll have to provide mechanisms, either in JCR itself, or on your application sitting on top of it, to make sure each application can only access content under its own branch, for security reasons. Hope this clarifies things a bit more. On Wed, Oct 28, 2009 at 8:42 PM, ChadDavis <[email protected]> wrote: >> From previous discussion in the maillist, workspace was designed for >> use case such as branches. Different workspaces share version history >> in a repository. > > Branches? Can you give me an example of what a branch is? > > Also, I don't understand what the significance of your comment about > version history? Can you elaborate on how that pertains to the use > case I describe. > >> >> For you case, single or multiple repository may meet your multi-client >> requirement. But workspace is not for this case. > > So, if I used a single repository to serve several apps, then how > would I separate the content space of the different apps -- since the > apps could easily be using the same names, it seems that they would > have to have separation. Are you suggesting that each app would have > it's own branch of the node tree? > -- Fabián Mandelbaum IS Engineer
