Question

The following config parameter in web.xml causes the @SessionScoped managed beans to replicate across a cluster:

<context-param>
    <param-name>com.sun.faces.enableAgressiveSessionDirtying</param-name>
    <param-value>true</param-value>
</context-param>

Is there some parameter like enableAgressiveViewDirtying? According to the comments here it is not possible to replicate @ViewScoped state across a cluster. Is this true? I am using Weblogic 10.3.6 with Mojarra 2.1.2. Could it be implementation-specific? If I switched to CDI, would there be a chance it would work better?

This answer claims a listener can do it. However, I could not get it to work.

No correct solution

OTHER TIPS

This is a Mojarra bug: https://java.net/jira/browse/GLASSFISH-20279. Currently @ViewScoped is not replicated in a cluster.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top