문제

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.

올바른 솔루션이 없습니다

다른 팁

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top