Return-Path: Delivered-To: apmail-db-jdo-user-archive@www.apache.org Received: (qmail 37682 invoked from network); 2 May 2007 07:54:45 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 2 May 2007 07:54:45 -0000 Received: (qmail 666 invoked by uid 500); 2 May 2007 07:54:51 -0000 Mailing-List: contact jdo-user-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: jdo-user@db.apache.org Delivered-To: mailing list jdo-user@db.apache.org Received: (qmail 652 invoked by uid 99); 2 May 2007 07:54:51 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 May 2007 00:54:51 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE X-Spam-Check-By: apache.org Received-SPF: neutral (herse.apache.org: local policy) Received: from [80.101.9.53] (HELO hq.costengineering.nl) (80.101.9.53) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 May 2007 00:54:43 -0700 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C78C8F.25346070" Subject: RE: refresh() X-MimeOLE: Produced By Microsoft Exchange V6.0.6249.0 Date: Wed, 2 May 2007 09:54:43 +0200 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: RE: refresh() Thread-Index: AceMj3wGuk7GK9tyRI20nu2JZveAaA== From: "Christiaan des Bouvrie" To: X-Virus-Checked: Checked by ClamAV on apache.org ------_=_NextPart_001_01C78C8F.25346070 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Craig: "perhaps there is a vendor-specific policy that you can use to specify that refresh should evict the instances from the datastore cache" =20 Unfortunately not. I will do the suggestion again though, but I just wanted to check whether the current behavior is according to the spec. =20 Craig: "// get fresh instances from the datastore pm.getDataStoreCache().evictAll(collection); pm.refresh(collection);" =20 That was indeed my initial approach. Unfortunately the evictAll() nullifies references in the pc objects which caused nullpointerexceptions in our multi-threaded application (multi-threaded option is set to true). =20 Kind regards, Christiaan ------_=_NextPart_001_01C78C8F.25346070--