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

ServerDeploymentManager: Cannot get the result of a deployment action

    XMLWordPrintable

Details

    • Feature Request
    • Resolution: Done
    • Major
    • 7.0.0.CR1
    • 7.0.0.Beta2
    • Domain Management
    • None

    Description

      I actually try to get the result of a deployment and unfortunately fail so far.

      I proceed in the following manner:

      I add an deployment, get the action that was created for it, and then
      try to retrieve the result of this action:

      ServerDeploymentManager manager = ServerDeploymentManager.Factory.create(client);
      InitialDeploymentPlanBuilder builder = manager.newDeploymentPlan();
      builder = builder.add(file.getName(), file).addDeploy();
      DeploymentAction action = builder.getLastAction();
      DeploymentPlan plan = builder.build();
      Future<ServerDeploymentPlanResult>  planResult = manager.execute(plan);
      ServerDeploymentPlanResult result = resultFuture.get(timeout,TimeUnit.MILLISECONDS);
      ServerDeploymentActionResult actionResult = result.getDeploymentActionResult(action.getId());
      

      ActionResult is always null.
      Behind the scenes the server deployment plan seems to always hold an empty map of
      actionResults (DeploymentPlanResultImpl#actionResults).

      Attachments

        Activity

          People

            sdouglas1@redhat.com Stuart Douglas
            adietish@redhat.com André Dietisheim
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: