[jboss-user] [Microcontainer] - DeploymentManager in 5.1.0.Beta1

Juergen.Zimmermann do-not-reply at jboss.com
Sun Mar 15 05:51:58 EDT 2009


I want to migrate my redeploy workaround to 5.1.0.Beta1. Using JBoss 5.0.0 and 5.0.1 I did it this way to redeploy a running EAR app:
DeploymentManager dm = ...;
  | DeploymentProgress stop = dm.stop(DeploymentPhase.APPLICATION, "hska");
  | stop.run();
  | checkProgress(stop);
  | 
  | DeploymentProgress distribute = dm.distribute("hska", DeploymentPhase.APPLICATION, new URL("file:/C:/.../server/default/deploy/hska.ear/"), false);
  | distribute.run();
  | checkProgress(distribute);

In 5.1.0.Beta1 the constant DeploymentPhase.APPLICATION is not required anymore. Fine.

However, looking at https://anonsvn.jboss.org/repos/jbossas/trunk/testsuite/src/main/org/jboss/test/deployers/AbstractDeploymentTest.java I'm not sure how to use the methods distribute(), start(), stop() and undeploy() of DeploymentManager. Any hint is appreciated!

View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4218073#4218073

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4218073



More information about the jboss-user mailing list