[
https://jira.jboss.org/jira/browse/JBIDE-3394?page=com.atlassian.jira.plu...
]
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