Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Make sure all JNDI bindings are up before starting weld
  • Loading branch information
stuartwdouglas authored and jharting committed Sep 4, 2012
1 parent a0a1488 commit c888a6a
Showing 1 changed file with 5 additions and 0 deletions.
Expand Up @@ -40,6 +40,7 @@
import org.jboss.as.jpa.config.PersistenceUnitMetadataHolder;
import org.jboss.as.jpa.service.PersistenceUnitServiceImpl;
import org.jboss.as.jpa.spi.PersistenceUnitMetadata;
import org.jboss.as.naming.deployment.JndiNamingDependencyProcessor;
import org.jboss.as.security.service.SimpleSecurityManager;
import org.jboss.as.security.service.SimpleSecurityManagerService;
import org.jboss.as.server.deployment.Attachments;
Expand Down Expand Up @@ -215,6 +216,10 @@ public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitPro
installTransactionService(serviceTarget, deploymentUnit, weldService, weldServiceBuilder);

weldServiceBuilder.addDependencies(jpaServices);

//make sure JNDI bindings are up
weldServiceBuilder.addDependency(JndiNamingDependencyProcessor.serviceName(deploymentUnit));

weldServiceBuilder.install();

}
Expand Down

0 comments on commit c888a6a

Please sign in to comment.