This content has been marked as final.
Show 3 replies
-
1. Re: DeploymentManager in 5.1.0.Beta1
alesj Mar 15, 2009 7:50 AM (in response to juergen.zimmermann)Moving this to JBoss5 user forum,
as DeploymentManager is _not_ part of MC. ;-) -
2. Re: DeploymentManager in 5.1.0.Beta1
juergen.zimmermann Mar 15, 2009 9:30 AM (in response to juergen.zimmermann)Got it:
Context ctx = new InitialContext(); ProfileService ps = (ProfileService) ctx.lookup("ProfileService"); DeploymentManager dm = ps.getDeploymentManager(); dm.loadProfile(new ProfileKey("default")); DeploymentProgress stop = dm.stop("hska"); // EAR app "hska.ear" stop.run(); checkProgress(stop); DeploymentProgress start = dm.start("vfsfile:/.../server/default/deploy/hska.ear/"); start.run(); checkProgress(distribute); ... private static void checkProgress(DeploymentProgress progress) { DeploymentStatus status = progress.getDeploymentStatus(); Throwable failure = status.getFailure(); if (failure != null) throw ...; }
-
3. Re: DeploymentManager in 5.1.0.Beta1
emuckenhuber Mar 15, 2009 12:40 PM (in response to juergen.zimmermann)There is also a brief explanation about this on the wiki:
http://www.jboss.org/community/docs/DOC-13417