weblogic群集问题总结

版权声明:本文为博主hecb原创文章,未经博主允许不得转载。 https://blog.csdn.net/blvyoucan/article/details/78663855
  • 防火墙需要开放80(受管服务器端口)、5556(节点管理器端口)、7001(管理服务器端口)
  • 受管服务器要使用pack和unpack命令复制,pack要指定managed=true
  • nodemanager.properties中的CrashRecoveryEnabled要改成ture,这样才能开机启动受管服务器
  • 需要为群集IP地址配置Virtual Hosts,URI Path为/**
  • 受管服务器监听地址配置为”0.0.0.0”,和不填有区别,在使用pack之前不要将监听地址写成”0.0.0.0”
  • 多台物理机上的session复制,应该使用Session Persistence
  • Session复制需要weblogic-application.xml文件
<?xml version="1.0" encoding="ISO-8859-1"?>
<weblogic-application xmlns="http://xmlns.oracle.com/weblogic/weblogic-application">
 <session-descriptor>
        <sharing-enabled>true</sharing-enabled>
 </session-descriptor>
</weblogic-application>

以及weblogic.xml文件

<?xml version="1.0" encoding="utf-8"?>
<weblogic-web-app
xmlns="http://www.bea.com/ns/weblogic/90"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.bea.com/ns/weblogic/90 http://www.bea.com/ns/weblogic/90/weblogic-web-app.xsd">
    <context-root>/</context-root>
    <session-descriptor>
        <timeout-secs>1800</timeout-secs>
        <cookie-name>BSS_JSESSIONID</cookie-name>
        <!--以文件方式持久化Session,persistent-store-dir配置共享磁盘上的文件-->
        <persistent-store-type>file</persistent-store-type>
        <persistent-store-dir>C:\\session_store</persistent-store-dir>
    </session-descriptor>
    <container-descriptor>
        <prefer-web-inf-classes>true</prefer-web-inf-classes>
        <show-archived-real-path-enabled>true</show-archived-real-path-enabled>
    </container-descriptor>
</weblogic-web-app>

猜你喜欢

转载自blog.csdn.net/blvyoucan/article/details/78663855
今日推荐