]
Randall Hauch resolved DNA-301.
-------------------------------
Fix Version/s: 0.4
(was: 0.5)
Resolution: Done
Assignee: Randall Hauch
This was done as part of DNA-302.
Most state managed within the Workspace should be shared among
multiple Session instances
-----------------------------------------------------------------------------------------
Key: DNA-301
URL:
https://jira.jboss.org/jira/browse/DNA-301
Project: DNA
Issue Type: Task
Components: API, JCR
Affects Versions: 0.3
Reporter: Randall Hauch
Assignee: Randall Hauch
Fix For: 0.4
Our current JcrWorkspace implementation is created to be used only by the one JcrSession
instance associated with it. Currently, each Session would have it's own Workspace
implementation, each of which would have its own copy of the namespace registry and node
type manager.
However, one common use case for JCR involves creating many Session instances for the
same workspace (e.g., this is the web app scenario). This means that we'd have a lot
of Workspace instances (same number as Session instances) each with their own copy of the
data. In fact, the node type manager should actually be "owned" (at least
logically) by the repository, per section 6.7.9: "There is one node type registry per
repository, therefore the NodeTypeManager is not workspace-specific; it provides
introspection methods for the global, repository-wide set of available node types."
Therefore, a number of things that are currently in the JcrWorkspace implementation
should be pulled out and reused for all JcrWorkspace instances created by the
JcrRepository for the same logical workspace. This issue captures the set of tasks that
are involved.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: