<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Exchange Server">
<!-- converted from rtf -->
<style><!-- .EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left: #800000 2px solid; } --></style>
</head>
<body>
<font face="Arial" size="2"><span style="font-size:10pt;">
<div>Hi all!</div>
<div>I'd like to provide some feedback about this issue: <a href="https://issues.jboss.org/browse/WELD-831"><font color="blue"><u>https://issues.jboss.org/browse/WELD-831</u></font></a></div>
<div> </div>
<div>As a matter of fact I had to test a basic CDI application with a @SessionScoped Bean in a cluster. </div>
<div> </div>
<div>package com.sample;</div>
<div> </div>
<div>import java.io.Serializable;</div>
<div>import javax.enterprise.context.SessionScoped;</div>
<div>import javax.inject.Named;</div>
<div> </div>
<div>@Named</div>
<div>@SessionScoped</div>
<div>public class UserBean implements Serializable {</div>
<div> int total;</div>
<div> </div>
<div> public void sum() {</div>
<div> total++;</div>
<div> System.out.println("Total is "+total);</div>
<div> }</div>
<div>}</div>
<div> </div>
<div> </div>
<div>The application is fronted by an Apache 2.2 server running on a Win-Vista machine, therefore I've defined the proxy-list statically in the mod_cluster configuration:</div>
<div> </div>
<div><subsystem xmlns="urn:jboss:domain:modcluster:1.1"></div>
<div> <mod-cluster-config advertise-socket="modcluster" proxy-list="127.0.0.1:8888" sticky-session="true" sticky-session-force="false" connector="ajp"></div>
<div> <dynamic-load-provider></div>
<div> <load-metric type="busyness"/></div>
<div> </dynamic-load-provider></div>
<div> </mod-cluster-config></div>
<div></subsystem></div>
<div>When I shut down the server node which has affinity to my session, I'm not able to failover to the survivor node.</div>
<div> </div>
<div>16:54:22,931 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host]] (ajp-/127.0.0.1:8009-1) Exception sending request initialized lifecycle event to listener instance of class org.jboss.weld.servlet.WeldListener: java.lang.IllegalStateException:
Error restoring serialized contextual with id org.jboss.weld.bean-jsf.war/C:/EAP/EAP-6.0.1/NodeB/jboss-eap-6.0/standalone/deployments/jsf.war/WEB-INF/classes-ManagedBean-class com.sample.UserBean</div>
<div> </div>
<div>The same application, using JSF annotations (javax.faces.bean.SessionScoped), works fine.</div>
<div>The tested environment is EAP 6.0.1 (AS 7.1.2)</div>
<div>Is there any workaround for this issue ?</div>
<div> </div>
<div>Thanks</div>
<div>Francesco</div>
<div> </div>
</span></font>
</body>
</html>