Details

    • Issuezilla Id:
      1,685
    • Status Whiteboard:
      Hide

      size_large importance_medium

      Show
      size_large importance_medium

      Description

      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
      actually changed.

        Issue Links

          Activity

          Hide
          Ed Burns added a comment -

          Actually marked as fixed.

          Show
          Ed Burns added a comment - Actually marked as fixed.
          Hide
          Ed Burns added a comment -
              • Issue 1597 has been marked as a duplicate of this issue. ***
          Show
          Ed Burns added a comment - Issue 1597 has been marked as a duplicate of this issue. ***
          Hide
          Ed Burns added a comment -

          We have a request to backport this to JSF 1.2.

          Show
          Ed Burns added a comment - We have a request to backport this to JSF 1.2.
          Hide
          Ed Burns added a comment -

          Patch from JSF_1_2X_ROLLING branch.

          Show
          Ed Burns added a comment - Patch from JSF_1_2X_ROLLING branch.
          Hide
          Manfred Riem added a comment -

          Since the "com.sun.faces.enableAgressiveSessionDirtying" flag is not enabled by default the runtime will not be impacted by the call to syncSession unless the flag is turned on. If any more work needs to be done, please file an issue that describes what needs to be done.

          Show
          Manfred Riem added a comment - Since the "com.sun.faces.enableAgressiveSessionDirtying" flag is not enabled by default the runtime will not be impacted by the call to syncSession unless the flag is turned on. If any more work needs to be done, please file an issue that describes what needs to be done.

            People

            • Assignee:
              Manfred Riem
              Reporter:
              Ed Burns
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: