Return-Path: Delivered-To: apmail-cayenne-user-archive@www.apache.org Received: (qmail 21985 invoked from network); 9 Jan 2008 08:52:17 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 9 Jan 2008 08:52:17 -0000 Received: (qmail 80956 invoked by uid 500); 9 Jan 2008 08:52:06 -0000 Delivered-To: apmail-cayenne-user-archive@cayenne.apache.org Received: (qmail 80941 invoked by uid 500); 9 Jan 2008 08:52:06 -0000 Mailing-List: contact user-help@cayenne.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@cayenne.apache.org Delivered-To: mailing list user@cayenne.apache.org Received: (qmail 80932 invoked by uid 99); 9 Jan 2008 08:52:06 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Jan 2008 00:52:06 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [86.109.165.164] (HELO lincl127.4clerks.com) (86.109.165.164) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Jan 2008 08:51:54 +0000 Received: from [192.168.1.253] (28.Red-80-33-78.staticIP.rima-tde.net [80.33.78.28]) (authenticated bits=0) by lincl127.4clerks.com (8.12.10/8.12.10) with ESMTP id m098plat018237 for ; Wed, 9 Jan 2008 09:51:48 +0100 Message-ID: <47848B21.2060108@ptbsl.com> Date: Wed, 09 Jan 2008 09:51:45 +0100 From: =?ISO-8859-1?Q?=C1lvaro_Mart=EDnez?= User-Agent: Thunderbird 2.0.0.9 (Windows/20071031) MIME-Version: 1.0 To: user@cayenne.apache.org Subject: Re: Selective commit References: <47821E96.1060703@ptbsl.com> <47824585.7090001@ptbsl.com> <47838331.3010403@ptbsl.com> <88187E68-1ADF-4C98-8234-2EE416E225C6@objectstyle.org> <478384A1.8030205@ptbsl.com> <478393B0.10708@ptbsl.com> <3EE2D49B-A329-4A4E-9725-49C593041388@objectstyle.org> <4759D4A8-502F-479E-97EE-BBE7C4AA56B9@objectstyle.org> In-Reply-To: <4759D4A8-502F-479E-97EE-BBE7C4AA56B9@objectstyle.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org Using brand new data contexts solved the problem! I just replaced this function: public DataContext getNewContext() { DataContext newContext = context.createChildDataContext(); newContext.setTransactionEventsEnabled(true); newContext.setValidatingObjectsOnCommit(true); return newContext; } With this one: public DataContext getNewContext() { return DataContext.createDataContext(true); } And everything is ok now. I didn't touch any other piece of code. Thank you very much! Andrus Adamchik escribi�: > BTW, while I am investigating the bug with nested contexts ... do you > have to use them at all? Can you just use multiple peer DataContexts > instead? > > Andrus