Author: richard.opalka(a)jboss.com
Date: 2008-05-21 13:52:06 -0400 (Wed, 21 May 2008)
New Revision: 7125
Modified:
framework/trunk/src/main/java/org/jboss/wsf/framework/deployment/HttpTransportDeploymentAspect.java
Log:
[JBWS-2188] implemented destroy phase
Modified:
framework/trunk/src/main/java/org/jboss/wsf/framework/deployment/HttpTransportDeploymentAspect.java
===================================================================
---
framework/trunk/src/main/java/org/jboss/wsf/framework/deployment/HttpTransportDeploymentAspect.java 2008-05-21
15:15:23 UTC (rev 7124)
+++
framework/trunk/src/main/java/org/jboss/wsf/framework/deployment/HttpTransportDeploymentAspect.java 2008-05-21
17:52:06 UTC (rev 7125)
@@ -80,4 +80,18 @@
ep.setAddress(ref.getAddress().toString());
}
}
+
+ @Override
+ public void destroy(Deployment dep, WSFRuntime runtime)
+ {
+ TransportManagerFactory tmf =
((ComposableRuntime)runtime).getTransportManagerFactory();
+ TransportManager httpTransport = tmf.createTransportManager(Protocol.HTTP);
+
+ for (Endpoint ep : dep.getService().getEndpoints())
+ {
+ ListenerRef listenerRef = ep.getAttachment(ListenerRef.class);
+ httpTransport.destroyListener(listenerRef);
+ }
+ }
+
}
\ No newline at end of file
Show replies by date