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

sessionWillPassivate method is not triggered during the shutdown

XMLWordPrintable

    • Hide
      1. Build and deploy the attached maven web project
      2. open the page http://localhost:8080/serializationTest-1.0-SNAPSHOT/
      3. click the login button
      4. shutdown the application server
      5. inside the server logs you should see a trace like this
        16:27:33,977 INFO [stdout] (default task-1) passivate
        that indicates the method sessionWillPassivate has been called. but this doesn' happens

       

      Show
      Build and deploy the attached maven web project open the page http://localhost:8080/serializationTest-1.0-SNAPSHOT/ click the login button shutdown the application server inside the server logs you should see a trace like this 16:27:33,977 INFO [stdout] (default task-1) passivate that indicates the method sessionWillPassivate has been called. but this doesn' happens  
    • Undefined
    • ---
    • ---

      the method sessionWillPassivate is not being triggered during the shutdown even if the web application is declared as distributable.

      I’m using Wildfly 22.0.1-final with the standalone.xml configuration without any custom configuration.

      For kind of simplicity I added you a sample (very simple) project that reproduce my problem.

              pferraro@redhat.com Paul Ferraro
              overit Roberto Moro (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: