[jbosstools-issues] [JBoss JIRA] Commented: (JBIDE-3394) Ensure deployment urls can be added
Juergen Zimmermann (JIRA)
jira-events at lists.jboss.org
Wed Mar 18 05:27:22 EDT 2009
[ https://jira.jboss.org/jira/browse/JBIDE-3394?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12457835#action_12457835 ]
Juergen Zimmermann commented on JBIDE-3394:
-------------------------------------------
Rob, I'm redeploying in my JUnit tests with JBossAS 5.1.0.Beta1 and the Profile Service as described in http://www.jboss.org/community/docs/DOC-13417 . However, this API has changed a little bit between 5.0 and 5.1.
Context ctx = new InitialContext();
ProfileService ps = (ProfileService) ctx.lookup("ProfileService");
ctx.close();
DeploymentManager dm = ps.getDeploymentManager();
DeploymentProgress stop = dm.stop("hska"); // name of the running EAR
stop.run();
checkFailed(stop);
DeploymentProgress start = dm.start("vfsfile:/.../hska.ear/"); // URL of the EAR
start.run();
checkFailed(start);
...
private static void checkFailed(DeploymentProgress progress) {
DeploymentStatus status = progress.getDeploymentStatus();
Throwable failure = status.getFailure();
if (failure != null)
throw new RuntimeException(failure);
}
> Ensure deployment urls can be added
> -----------------------------------
>
> Key: JBIDE-3394
> URL: https://jira.jboss.org/jira/browse/JBIDE-3394
> Project: Tools (JBoss Tools)
> Issue Type: Sub-task
> Components: JBossAS
> Reporter: Rob Stryker
> Assignee: Rob Stryker
> Priority: Critical
> Fix For: 3.1.0
>
>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jbosstools-issues
mailing list