[jboss-jira] [JBoss JIRA] Updated: (JBAS-9288) ServerDeploymentManager: Cannot get the result of a deployment action
Brian Stansberry (JIRA)
jira-events at lists.jboss.org
Fri Apr 15 15:44:33 EDT 2011
[ https://issues.jboss.org/browse/JBAS-9288?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Brian Stansberry updated JBAS-9288:
-----------------------------------
Component/s: Domain Management
> ServerDeploymentManager: Cannot get the result of a deployment action
> ---------------------------------------------------------------------
>
> Key: JBAS-9288
> URL: https://issues.jboss.org/browse/JBAS-9288
> Project: JBoss Application Server
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: Domain Management
> Affects Versions: 7.0.0.Beta2
> Reporter: Andre Dietisheim
>
> 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