This is a Mojarra bug: https://java.net/jira/browse/GLASSFISH-20279. Currently @ViewScoped
is not replicated in a cluster.
Is there com.sun.faces.enableAgressiveSessionDirtying for view scope?
-
12-10-2022 - |
Pregunta
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 hay solución correcta
Otros consejos
Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow