You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by Gonzalo Ruiz <gr...@germinus.com> on 2006/04/04 18:27:00 UTC
Re: Multiple workspaces
Hello again Helio
I think two options are possible.
1) If you have only a single workspace in your repository, you can
access this through session object (default workspace). A workspace is
only a tree with nodes and properties.
If you need diferent data models for each application, you can make a
subtree in the workspace per each applicattion, or use the same model.
But there is a problem. If you only use a single workspace, you only can
use a single Persister tied with this workspace.
2) If you use multiple workspaces, you could have separate trees for
each application, and you could use several Persisters for each
workspaces (DatabasePersisters, FileSystemPersisters, etc)
To access these workspaces, you have to write a workspace.xml,
configuration file per each workspace, and open a new session with the
desired workspace to manage the nodes and properties.
I hope, we could help each other.