Author: alessio.soldano(a)jboss.com
Date: 2013-07-16 09:59:32 -0400 (Tue, 16 Jul 2013)
New Revision: 17786
Modified:
container/jboss72/branches/jbossws-jboss720/server-integration/src/main/java/org/jboss/as/webservices/deployers/EndpointServiceDeploymentAspect.java
Log:
[JBWS-3660] Always stop endpoint through lifecycle handler
Modified:
container/jboss72/branches/jbossws-jboss720/server-integration/src/main/java/org/jboss/as/webservices/deployers/EndpointServiceDeploymentAspect.java
===================================================================
---
container/jboss72/branches/jbossws-jboss720/server-integration/src/main/java/org/jboss/as/webservices/deployers/EndpointServiceDeploymentAspect.java 2013-07-16
13:47:50 UTC (rev 17785)
+++
container/jboss72/branches/jbossws-jboss720/server-integration/src/main/java/org/jboss/as/webservices/deployers/EndpointServiceDeploymentAspect.java 2013-07-16
13:59:32 UTC (rev 17786)
@@ -53,13 +53,14 @@
@Override
public void stop(Deployment dep) {
- if (stopServices) {
- final DeploymentUnit unit = getRequiredAttachment(dep,
DeploymentUnit.class);
- for (final Endpoint ep : dep.getService().getEndpoints()) {
+ for (final Endpoint ep : dep.getService().getEndpoints()) {
+ if (ep.getLifecycleHandler() != null) {
+ ep.getLifecycleHandler().stop(ep);
+ }
+ if (stopServices) {
+ final DeploymentUnit unit = getRequiredAttachment(dep,
DeploymentUnit.class);
EndpointService.uninstall(ep, unit);
}
- } else {
- super.stop(dep);
}
}
Show replies by date