Java Mailing List Archive

http://www.gg3721.com/

Home » users.openjpa »

strange data cache behaviour

Georgi Naplatanov

2008-08-22

Replies: Find Java Web Hosting

Author LoginPost Reply
Hello, list.

I test an application with OpenJPA 1.2.0 which reads and writes data to
a database.

When the data cache is 0 or more than 1400 all is fine, but when the
data cache is between 1 and 1300, the test fails.

Before each query execution the application executes
EntityManager.flush() method.

OpenJPA is configured in extended context with Apache DBCP.

It is the test configuration:

<property name="openjpa.ConnectionProperties"
                value="DriverClassName=org.postgresql.Driver,
      Url=jdbc:postgresql://localhost/ocjutestdb,
      Username=ocjutest,
      Password=ocjutest,
                MaxActive=5,
                maxIdle=5,
                initialSize=5,
                defaultAutoCommit=false,
                defaultTransactionIsolation=2,
                poolPreparedStatements=true"/>
           <property name="openjpa.ConnectionDriverName"
<value="org.apache.commons.dbcp.BasicDataSource"/>
<property name="openjpa.QueryCompilationCache" value="true"/>
<property name="openjpa.QueryCache" value="false"/>        <property
name="openjpa.RemoteCommitProvider" value="sjvm"/>
<property name="openjpa.DataCache" value="true(CacheSize=1400,
SoftReferenceSize=0)"/>
<property name="openjpa.jdbc.UpdateManager"
value="org.apache.openjpa.jdbc.kernel.BatchingOperationOrderUpdateManager"/>

Does anybody have similar problem ?

Best regards
Georgi
©2008 gg3721.com - Jax Systems, LLC, U.S.A.