Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-14706

Distributed JSF applications should auto-disable "com.sun.faces.enableLazyBeanValidation" by default

    XMLWordPrintable

Details

    • Hide
      1. Deploy a distributed JSF application containing a @SessionScoped bean to a single server.
      2. Create a number of sessions
      3. Start a second server, which should assume ownership of approximately half of the existing sessions
      4. Wait until session timeout
      5. Sessions expired by the second server will not trigger @PreDestroy events on the @SessionScoped bean.
      Show
      Deploy a distributed JSF application containing a @SessionScoped bean to a single server. Create a number of sessions Start a second server, which should assume ownership of approximately half of the existing sessions Wait until session timeout Sessions expired by the second server will not trigger @PreDestroy events on the @SessionScoped bean.
    • Hide

      Add the following servlet context parameter to web.xml:

          <context-param>
              <param-name>com.sun.faces.enableLazyBeanValidation</param-name>
              <param-value>false</param-value>
          </context-param>
      
      Show
      Add the following servlet context parameter to web.xml: <context-param> <param-name>com.sun.faces.enableLazyBeanValidation</param-name> <param-value> false </param-value> </context-param>
    • Undefined

    Description

      Lazy bean validation can result in missing @PreDestroy events in a cluster under certain conditions (see steps to reproduce).

      Attachments

        Activity

          People

            pferraro@redhat.com Paul Ferraro
            pferraro@redhat.com Paul Ferraro
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: