2014-11-11 1 views
0

cache-config 파일에 pof-config가 지정된 라이브러리 jar를 사용하는 Java 프로세스를 시작해야합니다.오라클 일관성 캐시 구성의 pof-config

그러나 라이브러리 pof-config 파일에는 필요한 모든 개체가 없습니다. 이러한 특정 pof는 다른 pof-config 파일에 저장됩니다.

어쨌든 -Dtangosol.coherence.cacheconfig = "library와 함께 -Dtangosol.pof.config ="myown pof ".xml 런타임 인수를 제공하여 cache-config 파일에서 언급 한 pof-config를 무시할 수 있습니까? pof "?

내가 시도 할 때 특정 pofs로드되지 않습니다.

답변

1

대답은 예입니다.

구성 재정의 순서는

  1. 사용 내부 구성
  2. 사용 런타임이 매개 변수
  3. 코드 당신은 진정한 = -Dtangosol.pof.enabled 지정해야

입니다 . 우리의 구현에서

see oracle doc

우리는 다음을 사용 arfuments

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