Rick,
  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: 
http://openjpa.208410.n2.nabble.com/jira-Assigned-OPENJPA-1532-Should-the-shared-cache-mode-element-in-a-persistence-unit-definition-aut-tp7581118p7581158.html
Sent from the OpenJPA Developers mailing list archive at Nabble.com.

Reply via email to