super.stop();
}
private void stopListener(String key, Endpoint endpoint) throws Exception {
// Stop the Listener on endpoint that has been disabled
InputChannel iC = null;
String destName = null;
if (endpoint.getDestination() != null) {
System.out.println("Controller:" + getComponentName()
+ "-Stopping Listener Thread on Endpoint:" + endpoint.getDestination());
destName = endpoint.getDestination().toString();
iC = getInputChannel(destName);
} else {
System.out.println("Controller:" + getComponentName()
+ "-Stopping Listener Thread on Endpoint:" + endpoint.getReplyToEndpoint());
destName = endpoint.getReplyToEndpoint();
iC = getInputChannel(destName);
}
if (iC != null) {
if (UIMAFramework.getLogger(CLASS_NAME).isLoggable(Level.INFO)) {
UIMAFramework.getLogger(CLASS_NAME).logrb(Level.INFO, getClass().getName(), "stopListener",
UIMAEE_Constants.JMS_LOG_RESOURCE_BUNDLE, "UIMAEE_stopping_listener__INFO",
new Object[] { getComponentName(), destName, key });
}
iC.destroyListener(destName, key);
}
}