rcmException = RemoteCommandManagerException.errorReceivingJMSMessage(messageIsNullException);
messageIsNullException = null;
} else {
rcmException = RemoteCommandManagerException.errorReceivingJMSMessage(e);
}
if (tm.shouldRemoveConnectionOnError()) {
shouldReconnect = true;
Object[] args = { getServiceId(), rcmException };
rcm.logWarning("drop_connection_on_error", args);
// after connection is closed isActive will return false.
tm.removeLocalConnection();