Währung von @ApplicationScoped JSF Managed Beans

Ich benutze Mojarra 2.2.12 und in unserem Projekt haben wir ein paar@ApplicationScoped Bohnen. Zum Beispiel

@ManagedBean
@ApplicationScoped
public class AppScopedBean{

    private int commonValueForClients;

    //GET, SET

    public void evalNew(){
        int newCommonVal;
        //Evaluation of the new value, doesn't depend on the commonValueForClients
        commonValueForClients = newCommonVal;
    }
}

Meine Frage ist, ob wir uns um die Sichtbarkeit des neuen zugewiesenen Werts sorgen sollen.

I konnte nicht in @ findthe spec Diese JSF-Infrastruktur muss den Zugriff auf @ synchronisiere@ApplicationScoped Bean Felder. Also, besonders für Mojarra 2.2.12, sollten wir das Feld als @ deklariervolatile oder Zugriff explizit synchronisieren?

Antworten auf die Frage(2)

Ihre Antwort auf die Frage