Uploaded image for project: 'EJB 3.0'
  1. EJB 3.0
  2. EJBTHREE-2275

PreDestroy lifecycle callback not called when Activated EJB3 SFSB removal timeout is reached

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: bom-eap5-1.0.3
    • Fix Version/s: depchain-1.0.5
    • Component/s: core
    • Labels:
      None

      Description

      If removalTimeout < idleTimeout then the @PreDestroy callback is not called such as:
      @org.jboss.ejb3.annotation.CacheConfig(maxSize=1,idleTimeoutSeconds=5,removalTimeoutSeconds=1)

      If the removalTimeout > idleTimeout, then it functions as expected:
      INFO [STDOUT] helloWorld-ejb.jar - PostConstruct
      INFO [STDOUT] helloWorld-ejb.jar - Passivate
      INFO [STDOUT] helloWorld-ejb.jar - Activate
      INFO [STDOUT] helloWorld-ejb.jar - Destroy

      When removalTimeout < idleTimeout, if the RemovalTimeoutTask finds the removalTimeout has been reached for a particular SFSB, then it should go from Activated state to PreDestory to non-existent.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  bmaxwell Brad Maxwell
                  Reporter:
                  bmaxwell Brad Maxwell
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  1 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: