Resolution: Won't Fix
Affects Version/s: 1.2_14
Fix Version/s: None
Operating System: All
URL: https://javaserverfaces-spec-public.dev.java.net/issues/show_bug.cgi?id=789ShowOperating System: All Platform: All URL: https://javaserverfaces-spec-public.dev.java.net/issues/show_bug.cgi?id=789
When com.sun.faces.application.WebappLifecycleListener.syncSessionScopedBeans is
called, it makes a setAttribute() call for all session beans it is managing.
This is potentially an expensive and needless operation – if the application is
being run in an HA configuration, the setAttribute() call marks the attribute as
one where the state has changed and needs to be replicated. However, in many
cases the attribute hasn't actually changed, and the time spent for replication
is wasted. We find in a typical JSF app that these calls can be avoided as much
as 66% of the time.
The setAttribute() call should be made only when the attribute in question has