Skip to content

Commit

Permalink
Merge pull request #10923 from stuartwdouglas/WFLY-9883
Browse files Browse the repository at this point in the history
WFLY-9883 Don't create ModuleDeployment service for EAR archives
  • Loading branch information
stuartwdouglas committed Feb 22, 2018
2 parents f78bd45 + 22b7981 commit 19d9474
Showing 1 changed file with 6 additions and 0 deletions.
Expand Up @@ -34,6 +34,8 @@
import org.jboss.as.ee.component.EEModuleDescription;
import org.jboss.as.ee.component.ViewDescription;
import org.jboss.as.ee.component.deployers.StartupCountdown;
import org.jboss.as.ee.structure.DeploymentType;
import org.jboss.as.ee.structure.DeploymentTypeMarker;
import org.jboss.as.ejb3.component.EJBComponent;
import org.jboss.as.ejb3.component.EJBComponentDescription;
import org.jboss.as.ejb3.component.EJBViewDescription;
Expand Down Expand Up @@ -69,6 +71,10 @@ public void deploy(final DeploymentPhaseContext phaseContext) throws DeploymentU
if (eeModuleDescription == null) {
return;
}
if(DeploymentTypeMarker.isType(DeploymentType.EAR, deploymentUnit)) {
//don't create this for EAR's, as they cannot hold EJB's
return;
}
// Note, we do not use the EEModuleDescription.getApplicationName() because that API returns the
// module name if the top level unit isn't a .ear, which is not what we want. We really want a
// .ear name as application name (that's the semantic in EJB spec). So use EEModuleDescription.getEarApplicationName
Expand Down

0 comments on commit 19d9474

Please sign in to comment.