3 Replies Latest reply on Mar 15, 2009 12:40 PM by emuckenhuber

    DeploymentManager in 5.1.0.Beta1

    juergen.zimmermann

      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!