Uploaded image for project: 'WildFly Core'
  1. WildFly Core
  2. WFCORE-1272

Clean the deployment Resource in RootDeploymentUnitService's stop() method

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Done
    • Minor
    • 3.0.0.Alpha1
    • None
    • Management, Server
    • None

    Description

      DUPs can modify the Resource associated with a deployment in their deploy method, and should, by the DUP contract, reverse that change in undeploy. Scott's WFLY-4908 fix does this, and is good as it means the behavior is correct per the DUP contract.

      But as a second line of defense, RootDeploymentUnitService's stop method can clean up the deployment resource using DeploymentResourceSupport.cleanup. This will ensure that if the service is stopped by MSC without an undeploy or redeploy mgmt op being involved, if the service is started again the deployment resource will be back in the state it was when the RDUS was first constructed.

      Attachments

        Issue Links

          Activity

            People

              bstansbe@redhat.com Brian Stansberry
              bstansbe@redhat.com Brian Stansberry
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: