[Clustering] - Session Replication on separate machines
by jeronimo
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#4259876
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4259876
16 years, 8 months
[JBoss Portal Users] - Re: Session Expiry Handling
by aspdeepak
Jboss App Server V 4.2.2
Jboss Portal - V 2.7.0
DB - Mysql 5.0
you should have the portal and portlet session time out as the same to get rid of this kind of problems.
you should configure the session-timeout in the following web.xml.
<jboss-4.2.2.GA_ROOT>\server\default\deploy\jboss-portal.sar\portal-server.war\WEB-INF\web.xml
| <jboss-4.2.2.GA_ROOT>\server\default\deploy\jboss-portal.sar\portal-core.war\WEB-INF\web.xml
| <jboss-4.2.2.GA_ROOT>\server\default\deploy\jboss-web.deployer\conf\web.xml
|
|
| Here is an example setting timeout to 10 min.
|
|
| | <session-config>
| | <session-timeout>10</session-timeout>
| | </session-config>
| |
|
| Note: Also please use java script to handle the session expiry on the client side.
|
| Please do specify the version of Jboss App server, and the portal server that you are using. Its just a rule of thumb to be followed, also its already mentioned in this forum.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4259852#4259852
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4259852
16 years, 8 months