Uploaded image for project: 'Application Server 7'
  1. Application Server 7
  2. AS7-175

DomainXml creates invalid operations for deployments

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Critical Critical
    • 7.0.0.Beta2
    • 7.0.0.Beta1
    • Domain Management
    • None

      This made the wrong choice:

      final ModelNode deploymentAdd = new ModelNode();
      // TODO decide whether deployments are an attribute of list type or a child
      // deploymentAdd.get(OP_ADDR).set(address).add(DEPLOYMENT, uniqueName);
      // deploymentAdd.get(OP).set(ADD);
      deploymentAdd.get(OP_ADDR).set(address);
      deploymentAdd.get(OP).set("add-deployment");
      deploymentAdd.get(REQUEST_PROPERTIES, "unique-name").set(uniqueName);
      deploymentAdd.get(REQUEST_PROPERTIES, "runtime-name").set(runtimeName);
      deploymentAdd.get(REQUEST_PROPERTIES, "sha1").set(hash);
      deploymentAdd.get(REQUEST_PROPERTIES, "enabled").set(toStart);
      list.add(deploymentAdd);

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

              Created:
              Updated:
              Resolved: