【问题标题】:Oracle coherence override cache-config's pof-configOracle coherence 覆盖 cache-config 的 pof-config
【发布时间】:2014-11-11 12:48:23
【问题描述】:

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

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

我是否可以通过提供 -Dtangosol.pof.config="myown pof".xml 运行时参数和 -Dtangosol.coherence.cacheconfig="library pof 来覆盖缓存配置文件中提到的 pof-config “?

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

【问题讨论】:

    标签: java oracle-coherence


    【解决方案1】:

    答案是肯定的。

    配置覆盖的顺序是

    1. 使用内部配置
    2. 使用运行时参数
    3. 代码

    您需要指定 -Dtangosol.pof.enabled=true。

    see oracle doc

    在我们的实现中,我们使用以下参数

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2013-06-20
      • 2014-11-13
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2023-01-01
      • 2015-10-11
      相关资源
      最近更新 更多