[jboss-jira] [JBoss JIRA] Updated: (AS7-607) ServerDeploymentManager: Cannot get the result of a deployment action

Brian Stansberry (JIRA) jira-events at lists.jboss.org
Fri May 20 11:42:01 EDT 2011


     [ https://issues.jboss.org/browse/AS7-607?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Brian Stansberry updated AS7-607:
---------------------------------

    Fix Version/s: 7.0.0.CR1


> ServerDeploymentManager: Cannot get the result of a deployment action
> ---------------------------------------------------------------------
>
>                 Key: AS7-607
>                 URL: https://issues.jboss.org/browse/AS7-607
>             Project: Application Server 7
>          Issue Type: Feature Request
>          Components: Domain Management
>    Affects Versions: 7.0.0.Beta2
>            Reporter: Andre Dietisheim
>             Fix For: 7.0.0.CR1
>
>
> 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:
> {code:}
> 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());
> {code}
> ActionResult is always null.
> Behind the scenes the server deployment plan seems to always hold an empty map of 
> actionResults (DeploymentPlanResultImpl#actionResults).

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jboss-jira mailing list