Skip to content

Commit

Permalink
[WFCORE-1235] : Multiple triggers of each activator service when ther…
Browse files Browse the repository at this point in the history
…e are multiple modules with different service activator files in an ear..
  • Loading branch information
panossot committed Dec 16, 2015
1 parent 063b71a commit aa42ca2
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,12 @@ public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitPro
WildFlySecurityManager.setCurrentContextClassLoaderPrivileged(module.getClassLoader());
for (ServiceActivator serviceActivator : module.loadService(ServiceActivator.class)) {
try {
serviceActivator.activate(serviceActivatorContext);
for (String serv : servicesAttachment.getServiceImplementations(ServiceActivator.class.getName())) {
if(serv.compareTo(serviceActivator.getClass().getName())==0) {
serviceActivator.activate(serviceActivatorContext);
break;
}
}
} catch (ServiceRegistryException e) {
throw new DeploymentUnitProcessingException(e);
}
Expand Down

0 comments on commit aa42ca2

Please sign in to comment.