private void deactivateEndPoints() {
if (resourceadapter_ != null) {
//deactivateEndpoints as well!
Iterator<MessageEndpointFactoryInfo> iter = getAllEndpointFactories().iterator();
while (iter.hasNext()) {
MessageEndpointFactoryInfo element = iter.next();
try {
this.resourceadapter_.endpointDeactivation(
element.getEndpointFactory(), element.getActivationSpec());
} catch (RuntimeException e) {
_logger.warning(e.getMessage());
_logger.log(Level.FINE, "Error during endpointDeactivation ", e);
}
}