I'm experiencing a cache problem with the current version of OpenJPA (1.2.0),
and previous versions.
I've setup the cache as follows in persistence.xml:
<property name="openjpa.DataCache"
                                value="true(CacheSize=25000, 
SoftReferenceSize=0)" />
<property name="openjpa.QueryCache"
                                value="CacheSize=5000, SoftReferenceSize=100" />
<property name="openjpa.RemoteCommitProvider" value="sjvm"/>

We're using Spring JpaDaoSupport.
The org.springframework.orm.jpa.LocalEntityManagerFactoryBean is Spring
loaded.

The problem is that my query is returning stale data after an update/insert.
The update/insert is happening in a separate transaction from the select.

I've tried calling em.refresh(entity), but that didn't work.

Any ideas how I can fix this besides turning cacheing off completely?
-- 
View this message in context: 
http://n2.nabble.com/Cache-Problem-tp1092833p1092833.html
Sent from the OpenJPA Users mailing list archive at Nabble.com.

Reply via email to