Hi All,

Context:
-----------
Jackrabbit v 2.8
Deployment model 3, exposed via war deployed on tomcat 7
The consumers (web application) use webdav interface
We manage a session pool. One session per request
The consumer is stateless.

Need:
-------
Be able to add a "versionable" node subtree: 1st request for the root node,
and additional request per new child node.
All the subtree should not be available for read until all the grap is
created.
The same need for the update operation. The update will concern on a
specific version of the subtree. During the update the user should see the
old values of the version.

In my understanding, since that we don't keep a session for long time (a
session per request), we can not manage a JCR transaction to group all the
subtree operations before a commit.

I am thinking for this solution:
- Create a "tmp" node for subtree work, then I will move it in the right
place at the end.
- I don't know if this solution will work when I update an existing node. I
don't know if I create, move or copy the node to the tmp node.

Is there a better solution to solve this problem?

Maybe we can do it with transactions. If it is true, where and how to
manage it in the consumer side? Can we have a transaction shared by many
sessions?

Thanks,
Tarek

Reply via email to