HTTP session replication don`t work
santon2000 Nov 26, 2004 5:38 AMHello!!!
I have 2 box (win2000 and RH 9.0) with jboss3.2.3 and apache2 with mod_jk2 on other box.
In tomcat jboss-service.xml i added jvmRoute="server1" and jmRoute="server2".
Running on default config with cluster-service.xml and jbossha-httpsession.sar
on RH9.0 i added
route add -net 224.0.0.0 netmask 240.0.0.0 dev eth0
in my app in web.xml i added
<distributable/>
in my app i have login.jsp page
when i run server`s and login on it in 2 different IE
(jsessionid=L5VF7bOEnVbWKwmwKkPcSQ**.server2 and
jsessionid=vZsBb8L51UmWav7kYK06TQ**.server1)
i have index.jsp in my app
when i switch off server on win2000 or RH9.0
and refresh page on IE i have login.jsp page
that meens that http session replication don`t work?
is that true???
and how correct this if this true???
I read jbossClustering.pdf and not find any differences in my config
and config in book.
cluster-service.xml
<?xml version="1.0" encoding="UTF-8"?> <server> <classpath codebase="lib" archives="jbossha.jar"/> <mbean code="org.jboss.ha.framework.server.ClusterPartition" name="jboss:service=DefaultPartition"> <attribute name="PartitionName">DefaultPartition</attribute> <attribute name="DeadlockDetection">False</attribute> <attribute name="PartitionConfig"> <Config> <UDP mcast_addr="228.1.2.3" mcast_port="45566" ip_ttl="64" ip_mcast="true" mcast_send_buf_size="150000" mcast_recv_buf_size="80000" ucast_send_buf_size="150000" ucast_recv_buf_size="80000" loopback="false" /> <PING timeout="2000" num_initial_members="3" up_thread="true" down_thread="true" /> <MERGE2 min_interval="5000" max_interval="10000" /> <FD shun="true" up_thread="true" down_thread="true" timeout="2500" max_tries="5" /> <VERIFY_SUSPECT timeout="3000" num_msgs="3" up_thread="true" down_thread="true" /> <pbcast.NAKACK gc_lag="50" retransmit_timeout="300,600,1200,2400,4800" up_thread="true" down_thread="true" /> <pbcast.STABLE desired_avg_gossip="20000" up_thread="true" down_thread="true" /> <UNICAST timeout="5000" window_size="100" min_threshold="10" down_thread="true" /> <FRAG frag_size="8192" down_thread="true" up_thread="true" /> <pbcast.GMS join_timeout="5000" join_retry_timeout="2000" shun="true" print_local_addr="true" /> <pbcast.STATE_TRANSFER up_thread="true" down_thread="true" /> </Config> </attribute> </mbean> <mbean code="org.jboss.ha.hasessionstate.server.HASessionStateService" name="jboss:service=HASessionState"> <depends>jboss:service=DefaultPartition</depends> <attribute name="PartitionName">DefaultPartition</attribute> <attribute name="JndiName">/HASessionState/Default</attribute> <attribute name="BeanCleaningDelay">0</attribute> </mbean> <mbean code="org.jboss.ha.jndi.HANamingService" name="jboss:service=HAJNDI"> <depends>jboss:service=DefaultPartition</depends> <attribute name="PartitionName">DefaultPartition</attribute> <attribute name="BindAddress">${jboss.bind.address}</attribute> <attribute name="RmiPort">0</attribute> <attribute name="Port">1100</attribute> <attribute name="Backlog">50</attribute> <attribute name="AutoDiscoveryAddress">230.0.0.4</attribute> <attribute name="AutoDiscoveryGroup">1102</attribute> </mbean> <mbean code="org.jboss.invocation.jrmp.server.JRMPInvokerHA" name="jboss:service=invoker,type=jrmpha"> <attribute name="ServerAddress">${jboss.bind.address}</attribute> </mbean> <mbean code="org.jboss.cache.invalidation.bridges.JGCacheInvalidationBridge" name="jboss.cache:service=InvalidationBridge,type=JavaGroups"> <depends>jboss:service=DefaultPartition</depends> <depends>jboss.cache:service=InvalidationManager</depends> <attribute name="InvalidationManager">jboss.cache:service=InvalidationManager</attribute> <attribute name="PartitionName">DefaultPartition</attribute> <attribute name="BridgeName">DefaultJGBridge</attribute> </mbean> </server>
workers2.properties
[workerEnv] logger=logger.apache2 sslEnable=1 timing=1 forwardURICompatUnparsed noRecoveryIfRequestSent noRecoveryIfHeaderSent disabled=0 debug=5 [logger.apache2] level=DEBUG [shm] file=${serverRoot}/logs/shm.file size=1048576 disabled=0 debug=5 [channel.socket:192.168.13.4:8009] tomcatId=server2 keepalive=0 timeout=0 disabled=0 debug=5 #---LB--- lb_factor=1 [channel.socket:192.168.13.7:8009] tomcatId=server1 keepalive=0 timeout=0 disabled=0 debug=5 #---LB--- lb_factor=1 [ajp13:192.168.13.4:8009] channel=channel.socket:192.168.13.4:8009 max_connections=0 disabled=0 debug=5 #---LB--- level=1 [ajp13:192.168.13.7:8009] channel=channel.socket:192.168.13.7:8009 max_connections=0 disabled=0 debug=5 #---LB--- level=1 [status:status] info=Status worker. Displays runtime information. [uri:/web-app/*] group=lb:lb [uri:/jkstatus/*] group=status:status #---LB--- [lb:lb] worker=ajp13:192.168.13.4:8009 worker=ajp13:192.168.13.7:8009 debug=10 stickySession=1