Hi all,
I am trying to deploy a simple web application to test session replication on separate
machines with JBoss 5 AS.
I have developed my application on one computer and I have tryed the cluster starting two
istances with following commands:
sh run.sh -c node1
sh run.sh -c node2 -Djboss.service.binding.set=ports-01 -Djboss.messaging.ServerPeerID=1
(Node1 and node2 is a copy of the "all" folder)
And all works fine.
After I have copied the Jboss folder to anothe PC and I have tryed to start the nodes with
following commands:
./run.sh -c node1 -g DocsPartition -b 0.0.0.0
-Djboss.messaging.ServerPeerID=1 -Djboss.default.jgroups.stack=tcp
-Djgroups.tcpping.initial_hosts=192.168.1.151:7600,192.168.1.101:7600
./run.sh -c node1 -g DocsPartition -b 0.0.0.0 -Djboss.messaging.ServerPeerID=2
-Djboss.default.jgroups.stack=tcp
-Djgroups.tcpping.initial_hosts=192.168.1.151:7600,192.168.1.101:7600
(Node1 is a
copy of the "all" folder)
The two instances starts sucefully, but the session is not replicated across the
machines.
When node2 starts I see this in log of node1:
12:30:35,872 INFO [DocsPartition] I am (192.168.1.151:1099) received
membershipChanged event:
12:30:35,872 INFO [DocsPartition] Dead members: 0 ([])
12:30:35,872 INFO [DocsPartition] New Members : 1 ([192.168.1.101:1099])
12:30:35,872 INFO [DocsPartition] All Members : 2
([192.168.1.151:1099, 192.168.1.101:1099])
12:30:36,249 INFO [RPCManagerImpl] Received new cluster view:
[192.168.1.151:7600|9] [192.168.1.151:7600, 192.168.1.101:7600]
12:30:50,837 INFO [GroupMember]
org.jboss.messaging.core.impl.postoffice.GroupMember$ControlMembershipListener@1f3d09
got new view [192.168.1.151:49303|9] [192.168.1.151:49303,
192.168.1.101:55073], old view is [192.168.1.101:56930|8]
[192.168.1.151:49303]
12:30:50,837 INFO [GroupMember] I am (192.168.1.151:49303)
12:30:50,837 INFO [GroupMember] New Members : 1 ([192.168.1.101:55073])
12:30:50,837 INFO [GroupMember] All Members : 2
([192.168.1.151:49303, 192.168.1.101:55073])
12:31:01,207 INFO [RPCManagerImpl] Received new cluster view:
[192.168.1.151:7600|3] [192.168.1.151:7600, 192.168.1.101:7600]
I don't configure any load balancer because I don't need it in this test.
What I wrong?
Some people can help me, please?
If you need other details please contact me.
Thansk a lot to all.
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4259876#...
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&a...