[jboss-user] [Clustering/JBoss] - TomcatClusteringCache & Session replication
ozguy
do-not-reply at jboss.com
Wed Feb 4 21:02:56 EST 2009
Hi,
I am using Jboss 4.2.3 and jboss-portal-ha.sar 2.6 in a clustered environment where i have 2 nodes.
I have WebMUX load balancer infront of the jboss nodes.
When i access my portlet application , i can see the session replication details in the jTomcatClusteringCache is present in both the nodes with the same sessionid.
Onces i shut down the node that was handling the request before, i expect the another node to take over and continue from where it was left. This doesn't seem to happen.
When call getPortletSession(false) in the another node, it returns null. For some reason portlet is not able to access the Session it suppose to.
The Tomcat cache looks like this onces the other node was shut down:
JSESSION
/localhost
/LoginGenerator
/f4oMmaFoWGJfhI8PsN-C8g**
VERSION: 47
f4oMmaFoWGJfhI8PsN-C8g**: [B at 173cf45
/portal
/f4oMmaFoWGJfhI8PsN-C8g**
VERSION: 16
f4oMmaFoWGJfhI8PsN-C8g**: [B at 2cf42d
/SSO
/E652F58BAAA8F69E96BC42DE3D9233AE
/sessions
key: []
/credentials
key: org.jboss.web.tomcat.service.sso.TreeCacheSSOClusterManager$SSOCredentials at 11addf0
Session id that should contain the object is present in the cache f4oMmaFoWGJfhI8PsN-C8g** but the object i expect to be in there is null.
jboss-web.xml:
<replication-config>
<replication-trigger>SET</replication-trigger>
<replication-granularity>SESSION</replication-granularity>
</replication-config>
web.xml:
i have
<listener-class>org.jboss.portal.portlet.session.SessionListener</listener-class>
jboss-portlet.xml:
<portlet-name>LoginGeneratorPortlet</portlet-name>
<header-content>
</header-content>
<session-config>
true
</session-config>
Any help will be appreciated.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4207185#4207185
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4207185
More information about the jboss-user
mailing list