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
_______________________________________________
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to