관리 콘솔이나 CLI를 사용하여 클러스터에서 세션 복제를 활성화할 수 있습니다. 세션 복제를 활성화하려면 브라우저에서 쿠기가 사용 가능해야 합니다.
server.xml 파일에는 세션 복제와 관련된 정보가 있습니다. 다음은 세션 복제가 활성화된 샘플 server.xml 파일입니다.
<cluster> <local-host>hostA</local-host> <instance> <host>hostB</host> </instance> <instance> <host>hostC</host> </instance> <instance> <host>hostD</host> </instance> <instance> <host>hostA</host> <session-replication/> </cluster>
다음 요소의 기본값을 사용하는 경우에는 server.xml 구성 파일에서 이러한 요소의 항목을 사용할 수 없습니다.
Port number(기본값은 1099) |
Protocol(기본값은 jrmp) |
Encrypted(기본값은 false) |
Getattribute Triggers Replication(기본값은 true) |
Replica Discovery MaxHops(기본값은 –1) |
Startup Discovery Timeout(기본값은 0. Java API를 기반으로 시스템 시간을 조정합니다. Unix 기반 운영 체제가 아닌 경우 정확도가 떨어질 수 있습니다.) |
Cookie Name(기본값은 CLUSTERSESSIONLOCATOR) |
이러한 세션 복제 등록 정보에 대한 자세한 내용은Sun Java System Web Server 7.0 Update 3 Administrator’s Configuration File Reference를 참조하십시오.