public void start ( URL deployableUnitURL , String deployableUnitName ) throws DeploymentException { DeployableUnitWrapper du = new DeployableUnitWrapper ( deployableUnitURL , deployableUnitName ) ; if ( logger . isTraceEnabled ( ) ) { logger . trace ( "Method start called for " + du . getUrl ( ) + " [DU: " + deployableUnitName + "]" ) ; } try { // Get the deployable unit object DeployableUnit realDU = deployableUnits . get ( du . getFileName ( ) ) ; // If it exists, install it. if ( realDU != null ) { while ( isInUndeployList ( du . getFileName ( ) ) ) { Thread . sleep ( getWaitTimeBetweenOperations ( ) ) ; } sleeContainerDeployer . getDeploymentManager ( ) . installDeployableUnit ( realDU ) ; } } catch ( Exception e ) { logger . error ( "" , e ) ; } }
This is where the fun begins . Time to deploy!