You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by PeriS <pe...@kuali.org> on 2011/04/15 18:37:52 UTC
Threading-JCR
Scenerio: Need for persisting multiple files under a single node (Folder)
Structure:
Root
- Folder
- File1
- File 2
When trying to have multiple threads insert files under the same node,
complains about locking. What are the alternatives?
Thanks
-PeriS
Re: Threading-JCR
Posted by Raffaele Sena <ra...@gmail.com>.
what error do you get exactly ?
couple of alternatives:
- synchronize on something related to your folder (slows down your thread)
- add a worker thread to do the writes and queue your requests
-- Raffaele
On Fri, Apr 15, 2011 at 9:37 AM, PeriS <pe...@kuali.org> wrote:
> Scenerio: Need for persisting multiple files under a single node (Folder)
>
> Structure:
>
> Root
> - Folder
> - File1
> - File 2
>
> When trying to have multiple threads insert files under the same node,
> complains about locking. What are the alternatives?
>
> Thanks
> -PeriS
>
Re: Threading-JCR
Posted by Stefan Guggisberg <st...@gmail.com>.
On Fri, Apr 15, 2011 at 6:37 PM, PeriS <pe...@kuali.org> wrote:
> Scenerio: Need for persisting multiple files under a single node (Folder)
>
> Structure:
>
> Root
> - Folder
> - File1
> - File 2
>
> When trying to have multiple threads insert files under the same node,
> complains about locking. What are the alternatives?
please ask questions like this on the users list.
thanks
stefan
>
> Thanks
> -PeriS
>