【发布时间】:2015-10-15 13:48:36
【问题描述】:
在 openJPA 2.4 中,如果我设置:
<property name="openjpa.QueryCache" value="true"/>
但不要设置openjpa.RemoteCommitProvider 属性,我收到以下错误:
org.apache.openjpa.util.UserException:您尝试使用 RemoteCommitListener,但未指定 RemoteCommitProvider。要使用远程提交侦听器,您必须通过 openjpa.RemoteCommitProvider 配置属性配置远程提交提供程序以使用。
此配置曾经在 openJPA 1.X 中工作
有谁知道 QueryCache 是否绝对需要 openjpa.RemoteCommitProvider 或者这看起来像 openJPA 中的错误?
文档提到openjpa.DataCache 需要openjpa.RemoteCommitProvider,但没有提到openjpa.QueryCache 需要这一点
【问题讨论】:
标签: caching persistence openjpa