Oracle coherence覆盖了cache-config的pof-config

时间:2014-11-11 12:48:23

标签: java oracle-coherence

我需要启动一个java进程,该进程使用在其cache-config文件中指定了pof-config的库jar。

然而,库pof-config文件没有我需要的所有对象POF。那些特定的pof存储在另一个pof-config文件中。

无论如何,我可以通过提供-Dtangosol.pof.config =“myown pof”.xml运行时参数以及-Dtangosol.coherence.cacheconfig =“library pof”覆盖cache-config文件中提到的pof-config “?

在我尝试的那一刻,特定的pofs没有加载。

1 个答案:

答案 0 :(得分:1)

答案是肯定的。

配置覆盖的顺序是

  1. 使用内部配置
  2. 使用运行时参数
  3. 您需要指定-Dtangosol.pof.enabled = true。

    see oracle doc

    在我们的实施中,我们使用以下arfuments

    -Dtangosol.coherence.cacheconfig=$COHERENCE_HOME/local-config.xml
    -Dtangosol.pof.enabled=true
    -Dtangosol.pof.config=$COHERENCE_HOME/pof-config.xml