openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pinaki Poddar <ppod...@apache.org>
Subject StoreCache/DataCache is not null even when DataCache is configured to be inactive
Date Wed, 21 May 2008 22:08:51 GMT

The following configuration 

    <property name="openjpa.DataCache" value="false"/>

is expected to configure the environment without a DataCache/StoreCache. Is
that right expectation?

However, OpenJPAEntityManagerFactory configured as above fails following
assertions: 

1:  assertNull(emf.getStoreCache());
2:  assertNull(emf.getConfiguration().getDataCacheManagerInstance());

but succeeds the following:

3:  assertNull(((StoreCacheImpl)emf.getStoreCache()).getDelegate());
4. 
assertNull(emf.getConfiguration().getDataCacheManagerInstance().getSystemDataCache());


Anyone to shed light why StoreCache or DataCacheManager is instantiated even
when DataCache is set to be false?

-- 
View this message in context: http://www.nabble.com/StoreCache-DataCache-is-not-null-even-when-DataCache-is-configured-to-be-inactive-tp17380291p17380291.html
Sent from the OpenJPA Developers mailing list archive at Nabble.com.


Mime
View raw message