生産環境:
系統: Redhat_6.6.x86_64
負載反向代理工具: Nginx-1.8.1
Session工具: nginx-upstream-jvm-route-0.2.tar.gz
nginx-upstream-jvm-route下載下傳位址:https://code.google.com/archive/p/nginx-upstream-jvm-route/downloads
1、nginx-upstream-jvm-route安裝
假設nginx_upstream_jvm_route下載下傳後的路徑為/usr/local/nginx_upstream_jvm_route
(1)進入nginx源碼路徑
# patch -p0 < /usr/local/nginx_upstream_jvm_route/jvm_route.patch
(2)配置系統編譯安裝環境
# ./configure --with-http_stub_status_module --with-http_ssl_module --prefix=/usr/local/nginx --with-pcre=/usr/local/pcre-8.33 --add-module=/usr/local/nginx_upstream_jvm_route
(3)編譯安裝
# make & make install
2、配置Nginx_upstream及session黏粘

做好以上配置還不行,如果所使用的目前節點當機後,再次在前端web頁面上做任何操作時,包括重新整理、點選,浏覽時,會讓你重新登入的;go on!!!!!!
3、Session複制
應用中添加weblogic.xml
<?xml version="1.0" encoding="GBK"?>
<weblogic-web-app xmlns="http://www.bea.com/ns/weblogic/90">
<session-descriptor>
<persistent-store-type>replicated</persistent-store-type>
<sharing-enabled>true</sharing-enabled>
</session-descriptor>
</weblogic-web-app>
儲存退出,并重新開機Weblogic的所有web節點服務,再次測試,完美解決Session共享複制!