db-jdo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Christiaan des Bouvrie" <c.des.Bouv...@CostEngineering.eu>
Subject RE: refresh()
Date Wed, 02 May 2007 07:54:43 GMT
Craig:

"perhaps there is a vendor-specific

policy that you can use to specify that refresh should evict the

instances from the datastore cache"

 

Unfortunately not. I will do the suggestion again though, but I just
wanted to check whether the current behavior is according to the spec.

 

Craig:

"// get fresh instances from the datastore
pm.getDataStoreCache().evictAll(collection);
pm.refresh(collection);"
 
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).

 

Kind regards,

Christiaan


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message