`

jboss集群之session复制

阅读更多

假设集群有两台服务器node1,node2,IP分别为:172.16.8.22,172.16.8.23

1、在我们的WEB应用配置文件web.xml中添加以下内容:

 

<?xml version="1.0"?> 
<web-app  xmlns="http://java.sun.com/xml/ns/javaee"
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
          xsi:schemaLocation="http://java.sun.com/xml/ns/javaee 
                              http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" 
          version="2.5">
          
    <distributable/>


    
</web-app>

 

2、启动服务器

 

$ ./run.sh -c all -g DocsPartition
 -u 239.255.100.100  -b 172.16.8.22
 -Djboss.messaging.ServerPeerID=1


$ ./run.sh -c all -g DocsPartition
 -u 239.255.100.100  -b 172.16.8.23
 -Djboss.messaging.ServerPeerID=2
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics