Hi,
I have an app built on jboss 6.1 with jsf 2 + seam 3 + cdi. I need to put it on a clustered environment. If I enable the sticky sessions on the load balancer it works. The thing is, I can't use sticky sessions. When I disable it I noticed a lot of ViewExpiredExceptions happening. But all my beans are session scoped. So I did a very simple test with jsp pages. One jsp to write something on the session and another to read it. The result is: I write something, but everytime I try to read it, it reads a different session id. The example is as follows:
{code}
<!-- write.jsp -->
<%
session.putValue("key", new java.util.Date());
%>
<html>
<body>
<h2> written <%=session.getValue("key")%> no id <%=session.getId()%></h2>
</body>
</html>
<!-- read.jsp -->
<html>
<body>
<h2>value: <%=session.getValue("key")%></h2><br/>
<h2>id <%=session.getId()%></h2>
</body>
</html>
{code}
In my web.xml I have the distributable tag. What else should I do to make this work? Or this should not work at all?
Thanks
Kelly