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

Reply via email to