Skip to content

Commit

Permalink
WELD-1685 Do not enforce EjbServices in the deployment (should be a p…
Browse files Browse the repository at this point in the history
…er-module service)
  • Loading branch information
mkouba authored and jharting committed Jun 4, 2014
1 parent df30ddc commit 51c07a6
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 5 deletions.
Expand Up @@ -19,7 +19,6 @@
import java.util.HashSet;
import java.util.Set;

import org.jboss.weld.ejb.spi.EjbServices;
import org.jboss.weld.injection.spi.EjbInjectionServices;
import org.jboss.weld.injection.spi.InjectionServices;
import org.jboss.weld.injection.spi.JpaInjectionServices;
Expand All @@ -45,8 +44,15 @@ public enum Environments implements Environment {
*/
EE_INJECT(new EnvironmentBuilder().addRequiredDeploymentService(TransactionServices.class)
.addRequiredDeploymentService(SecurityServices.class)
.addRequiredDeploymentService(EjbServices.class)
.addRequiredDeploymentService(ScheduledExecutorServiceFactory.class)
/*
* EjbServices is a required bean deployment archive service in this environment.
* For backwards compatibility with older integrators that register EjbServices
* as a deployment service, this check is suppressed.
*
* @see WELD-1685
*/
// .addRequiredBeanDeploymentArchiveService(EjbServices.class)
.addRequiredBeanDeploymentArchiveService(ResourceLoader.class)
.addRequiredBeanDeploymentArchiveService(JpaInjectionServices.class)
.addRequiredBeanDeploymentArchiveService(ResourceInjectionServices.class)
Expand All @@ -61,9 +67,16 @@ public enum Environments implements Environment {
*/
EE(new EnvironmentBuilder().addRequiredDeploymentService(TransactionServices.class)
.addRequiredDeploymentService(SecurityServices.class)
.addRequiredDeploymentService(EjbServices.class)
.addRequiredBeanDeploymentArchiveService(ResourceLoader.class)
.addRequiredDeploymentService(ScheduledExecutorServiceFactory.class)
/*
* EjbServices is a required bean deployment archive service in this environment.
* For backwards compatibility with older integrators that register EjbServices
* as a deployment service, this check is suppressed.
*
* @see WELD-1685
*/
// .addRequiredBeanDeploymentArchiveService(EjbServices.class)
.addRequiredBeanDeploymentArchiveService(ResourceLoader.class)
.addRequiredBeanDeploymentArchiveService(InjectionServices.class)),

/**
Expand Down
Expand Up @@ -23,7 +23,7 @@
/**
* A container should implement this interface to allow Weld to resolve EJB and discover EJBs
*
* {@link EjbServices} is a per-deployment service.
* {@link EjbServices} is is a per-BeanDeploymentArchive service.
*
* @author Pete Muir
* @author Marius Bogoevici
Expand Down

0 comments on commit 51c07a6

Please sign in to comment.