-
1. Re: JBOSS AS 6 Session Sharing in cluster between two nodes
wdfink Jan 6, 2014 12:53 PM (in response to raviyadav)What you mean by sharing?
A web application need to have an external loadbalancer
-
2. Re: JBOSS AS 6 Session Sharing in cluster between two nodes
raviyadav Jan 7, 2014 12:07 AM (in response to wdfink)I mean i have one jsp in node1 and have session.setAttribute("name","ravi yadav"); in it
and i have
String name=(String)session.getAttribute("name");
out.println("name>>>>>>>>>>>>>"+name);
in the jsp which is in second node
i just wanted to know whether these jsps in different nodes have same session object..
-
3. Re: JBOSS AS 6 Session Sharing in cluster between two nodes
raviyadav Jan 9, 2014 6:16 AM (in response to raviyadav)HI Wolf-Dieter Fink,
I have 2 JBoss instance join the cluster, working fine. They see each other in the same partition.
I create simple JSP to set value to session in node1 and one JSP to display it it node2, deploy to 2 servers.
In the web.xml, I put :
<distributable/>
Can you please let me know why am not able to get the value set to session in node1 is not replicated in node2
i am accessing the nodes urls seperatly like
node1 :
http://192.168.1.131:8280/example/ONE.jsp
node2:
http://192.168.1.132:8280/example/TWO.jsp
i jst kept session.setAttribute("name","name"); in ONE.jsp and
String name=(String)session.getAttribute("name"); in second jsp
Please help me.
Thanks
Ravi Yadav