Jukka Zitting wrote:
OK that could work!Hi, On 11/5/07, Dan Diephouse <[EMAIL PROTECTED]> wrote: I really don't want to lock the whole collection of entries though. That would mean I would get a LockException if another thread tried writing to that node, which 99.9999% of the time won't cause a conflict.Alternatively you need to implement that constraint in your code. Whenever creating a new node (or modifying the "resource name" property) you could lock the subtree (or just a separate lock node) and check that the constraint isn't being violated before saving the changes. Cheers, - Dan -- Dan Diephouse MuleSource http://mulesource.com | http://netzooid.com/blog |
- Enforcing constraints; Sessions and Threading Dan Diephouse
- Re: Enforcing constraints; Sessions and Threading Jukka Zitting
- Re: Enforcing constraints; Sessions and Threading Dan Diephouse
- Re: Enforcing constraints; Sessions and Threadi... Jukka Zitting
- Re: Enforcing constraints; Sessions and Thr... Dan Diephouse
- Re: Enforcing constraints; Sessions an... Jukka Zitting
