接着上篇继续。。。
扩展域配置截图

结束后会生成apps目录,如图。代理会需要到下面这2个文件,下面会讲

根据截图目录找到命令,启动各个server:命令 xxx.cmd Server-4 http://127.0.0.1:7001
其中Server-4 为自己创建的服务器名称
http://127.0.0.1:7001 为要发布到那台主服务的ip和端口,这里我是本机

创建代理目录,创建一个文件,把上面的复制过来,如图

web.xml内容如下是之前配置自动生成,只需要关注下面的ip,和服务器的一一对应即可
3

weblogic.xml 需要修改发布项目名称即可,这里我的是aciveMQ,就是需要监听那个项目,代理项目配置完成

session 共享配置,集群共享session也很简单,新增一个weblogic.xml,添加如下配置即可,如图

全部内容如下
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE weblogic-web-app PUBLIC "-//BEA Systems, Inc.//DTD Web Application 8.1//EN" "http://www.bea.com/servers/wls810/dtd/weblogic810-web-jar.dtd">
<weblogic-web-app>
<session-descriptor>
<persistent-store-type>replicated</persistent-store-type>
<sharing-enabled>true</sharing-enabled>
</session-descriptor>
</weblogic-web-app>
<!DOCTYPE weblogic-web-app PUBLIC "-//BEA Systems, Inc.//DTD Web Application 8.1//EN" "http://www.bea.com/servers/wls810/dtd/weblogic810-web-jar.dtd">
<weblogic-web-app>
<session-descriptor>
<persistent-store-type>replicated</persistent-store-type>
<sharing-enabled>true</sharing-enabled>
</session-descriptor>
</weblogic-web-app>
开始部署项目

这个不解释了吧

选择为应用程序

只部署到集群

部署完成如图

启动代理服务器,和启动server一样命令

整体服务器启动后效果截图

部署proxy项目到proxy代理服务器,操作如下,选择proxy

项目部署完成截图

测试项目,成功

session成功 !

*********************到此集群和共享session配置全部结束。****************************