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

Not started servers need a placeholder resource when added

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 1.0.0.Alpha13
    • 1.0.0.Alpha12
    • Management
    • None

    Description

      In ServerAddHandler where the server resource is created, a placeholder should be added. I.e. instead of context.createResource(...) below

      context.addStep(runningServerAdd, new OperationStepHandler() {
      @Override
      public void execute(final OperationContext context, final ModelNode operation) throws OperationFailedException

      { context.createResource(PathAddress.EMPTY_ADDRESS); context.stepCompleted(); }

      }, OperationContext.Stage.MODEL, true);

      context.addResource(PathAddress.EMPTY_ADDRESS, PlaceholderResource.INSTANCE) should be used instead. Otherwise, servers that are not started at boot will be missing runtime proxies and will be considered as parts of the persistent model.

      Attachments

        Activity

          People

            olubyans@redhat.com Alexey Loubyansky
            olubyans@redhat.com Alexey Loubyansky
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: