다음 단계는 Application Server 9.1용 설치 프로그램에 의해 자동으로 수행되지만, GlassFish v2를 사용하는 경우에는 이러한 절차를 수동으로 수행해야 합니다.
웹 서버 인스턴스의 magnus.conf파일에 다음 줄을 추가합니다.
##BEGIN EE LB Plug-in Parameters Init fn="load-modules" shlib="web-server-install-dir/plugins/lbplugin/bin/libpassthrough.so" funcs="init-passthrough,service-passthrough,name-trans-passthrough" Thread="no" Init fn="init-passthrough" ##END EE LB Plug-in Parameters=
다음 줄이 없는 경우 추가합니다.
Init fn="load-modules" shlib=".../libj2eeplugin.so" shlib_flags="(global|now)"
web-server-install-dir/config/obj.conf 파일에서 처음 나타나는 nametrans 문자열 앞에 한 줄로 다음을 삽입합니다.
Nametrans fn="name-trans-passthrough" name="lbplugin" config-file="web-server-install-dir/config/loadbalancer.xml"
NameTrans 항목이 obj.conf에 나타나는 순서는 매우 중요합니다. 설치 프로그램은 NameTrans 항목을 올바른 위치에 놓지만 다른 목적으로 obj.conf를 편집하는 경우 순서가 올바른 상태로 유지되는지 확인해야 합니다. 특히 로드 밸런서 정보가 document-root 함수 앞에 와야 합니다. obj.conf 파일에 대한 자세한 내용은 Sun Java System Web Server 7.0 Administrator’s Configuration File Reference를 참조하십시오.
web-server-install-dir/config/obj.conf 파일에 다음 줄을 추가합니다.
<Object name = "lbplugin"> ObjectType fn="force-type" type="magnus-internal/lbplugin" PathCheck fn="deny-existence" path="*/WEB-INF/*" Service type="magnus-internal/lbplugin" fn="service-passthrough" Error reason="Bad Gateway" fn="send-error" uri="$docroot/badgateway.html" </Object>
web-server-install-dir/start 스크립트를 편집하여 app-server-install-dir/lib/lbplugin/lib를 포함하도록 LD_LIBRARY_PATH 값을 업데이트합니다.
app-server-install-dir/lib/lbplugin/lib 디렉토리에 로드 밸런서 플러그인에 필요한 바이너리가 포함되어 있습니다.
(옵션) 새 DAS 기반 로드 밸런서 관리의 경우 SSL을 사용하도록 웹 서버를 구성합니다.
Web Server 6.1에 대한 자세한 지침은 Sun Java System Web Server 6.1에 대해 SSL 모드에서 로드 밸런서 설정 을 참조하십시오.
Web Server 7에 대한 자세한 지침은 Web Server 7에 대해 SSL 모드에서 로드 밸런서 설정을 참조하십시오.
웹 서버가 아직 실행 중이지 않으면 웹 서버를 시작합니다.