openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pinaki Poddar <>
Subject Re: [jira] [Assigned] (OPENJPA-1532) Should the <shared-cache-mode> element in a persistence unit definition automatically turn on the data cache?
Date Fri, 21 Sep 2012 00:23:56 GMT
  Having one configuration impacting another is not recommendable. It would
lead to complications. 
I am not arguing about rationale of active DataCache for <shared-data-cache>
-- but would refrain to do it *automatically* in code.
At code level, better would be to simply warn 
"you have <shared-cache> but your data cache is not active. This directive
will be ignored unless you ..."

The issue should be handled at documentation level: "if you are using
<shared-data-cache>, you *must* activate data cache by
openjpa.DataCache=true etc.".

Pinaki Poddar
Chair, Apache OpenJPA Project
View this message in context:
Sent from the OpenJPA Developers mailing list archive at

View raw message