Return-Path: Delivered-To: apmail-jackrabbit-users-archive@locus.apache.org Received: (qmail 47295 invoked from network); 28 Nov 2008 10:05:28 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 28 Nov 2008 10:05:28 -0000 Received: (qmail 23226 invoked by uid 500); 28 Nov 2008 10:05:39 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 22738 invoked by uid 500); 28 Nov 2008 10:05:38 -0000 Mailing-List: contact users-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@jackrabbit.apache.org Delivered-To: mailing list users@jackrabbit.apache.org Received: (qmail 22727 invoked by uid 99); 28 Nov 2008 10:05:38 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 28 Nov 2008 02:05:38 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of donvodka@gmail.com designates 209.85.221.18 as permitted sender) Received: from [209.85.221.18] (HELO mail-qy0-f18.google.com) (209.85.221.18) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 28 Nov 2008 10:04:10 +0000 Received: by qyk11 with SMTP id 11so1568750qyk.19 for ; Fri, 28 Nov 2008 02:04:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id :disposition-notification-to:date:from:user-agent:mime-version:to :subject:references:in-reply-to:content-type :content-transfer-encoding; bh=SNqZdMxF6roe5Sk2bNqiOa3vbWQ6YcQaaCq7/A0CnFo=; b=gc3XKIXPoMxaZ/An2g7XHe+Ei4Z9+wX6ythZOaVYKCJLSu783kbmwDXiGXkWlmo+mG HbCK8+4dXEElIKpIWhyaHMbna37PEgzftJtMuz0NzXZX8+yGGHWGYr8LtzoltSm4HruM duahsEZ17Ko2VRMgV0ngC6QvDgIcHzwNGbkRc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:disposition-notification-to:date:from:user-agent :mime-version:to:subject:references:in-reply-to:content-type :content-transfer-encoding; b=NQARt9h7oNQqTTUdkglGpdXUpLSd+GNM6feLg98OCLdvOK6WRR8rxL5UH10QvErI4O VRt4x9naAdLvejHreff85q1NIwsd8fWxbJJBvx/C9LfKfBmX4BPTnLuFl2ynWhpcxNY/ aNwWqKj+AvP4NhfpGTyRBpxedGZ9lQ5Hg+SpI= Received: by 10.214.183.15 with SMTP id g15mr7585797qaf.163.1227866696372; Fri, 28 Nov 2008 02:04:56 -0800 (PST) Received: from ?10.106.86.54? ([200.92.184.249]) by mx.google.com with ESMTPS id 2sm856839qwi.59.2008.11.28.02.04.54 (version=SSLv3 cipher=RC4-MD5); Fri, 28 Nov 2008 02:04:55 -0800 (PST) Message-ID: <492FC245.2090301@gmail.com> Date: Fri, 28 Nov 2008 04:04:53 -0600 From: Edgar Merino User-Agent: Thunderbird 2.0.0.17 (X11/20081023) MIME-Version: 1.0 To: users@jackrabbit.apache.org Subject: Re: Remove child nodes while iterating them References: <492FA6A6.2040406@gmail.com> In-Reply-To: <492FA6A6.2040406@gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org Never mind, removing them from the parent node and then updating it seems to be the way to go. Edgar Merino Edgar Merino escribi�: > Hello, > > Thanks for the replies on previous messages. OCM is working fine, > but I've noticed that when calling ObjectContentManager#remove(Object > obj) it removes the node from the underlaying session, if this is done > while iterating a collection I get a PathNotFoundException, since the > path of the objects in the collection does not correspond to the > actual paths of the nodes within the session. Is there anyway I can > avoid this (without creating a Query)? > > Thanks in advance, > Edgar Merino >