mirror of https://github.com/apache/activemq.git
apply patch for: https://issues.apache.org/jira/browse/AMQ-3624
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1213691 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
2bfd88e87d
commit
cfcd4f7f64
|
@ -196,9 +196,9 @@ public class TransportConnection implements Connection, Task, CommandVisitor {
|
|||
if (!stopping.get()) {
|
||||
transportException.set(e);
|
||||
if (TRANSPORTLOG.isDebugEnabled()) {
|
||||
TRANSPORTLOG.debug("Transport failed: " + e, e);
|
||||
TRANSPORTLOG.debug(this + " failed: " + e, e);
|
||||
} else if (TRANSPORTLOG.isWarnEnabled() && !expected(e)) {
|
||||
TRANSPORTLOG.warn("Transport failed: " + e);
|
||||
TRANSPORTLOG.warn(this + " failed: " + e);
|
||||
}
|
||||
stopAsync();
|
||||
}
|
||||
|
@ -1256,7 +1256,7 @@ public class TransportConnection implements Connection, Task, CommandVisitor {
|
|||
return null;
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
@SuppressWarnings({ "unchecked", "rawtypes" })
|
||||
private HashMap<String, String> createMap(Properties properties) {
|
||||
return new HashMap(properties);
|
||||
}
|
||||
|
|
|
@ -45,7 +45,7 @@ import org.slf4j.LoggerFactory;
|
|||
|
||||
/**
|
||||
* @org.apache.xbean.XBean
|
||||
*
|
||||
*
|
||||
*/
|
||||
public class TransportConnector implements Connector, BrokerServiceAware {
|
||||
|
||||
|
@ -130,7 +130,7 @@ public class TransportConnector implements Connector, BrokerServiceAware {
|
|||
}
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
* @deprecated use the {@link #setBrokerService(BrokerService)} method
|
||||
* instead.
|
||||
*/
|
||||
|
@ -168,7 +168,7 @@ public class TransportConnector implements Connector, BrokerServiceAware {
|
|||
* {@link TransportServer} configured via the
|
||||
* {@link #setServer(TransportServer)} method. This value is used to lazy
|
||||
* create a {@link TransportServer} instance
|
||||
*
|
||||
*
|
||||
* @param uri
|
||||
*/
|
||||
public void setUri(URI uri) {
|
||||
|
@ -218,8 +218,9 @@ public class TransportConnector implements Connector, BrokerServiceAware {
|
|||
Connection connection = createConnection(transport);
|
||||
connection.start();
|
||||
} catch (Exception e) {
|
||||
String remoteHost = transport.getRemoteAddress();
|
||||
ServiceSupport.dispose(transport);
|
||||
onAcceptError(e);
|
||||
onAcceptError(e, remoteHost);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
@ -526,7 +527,7 @@ public class TransportConnector implements Connector, BrokerServiceAware {
|
|||
public void setRebalanceClusterClients(boolean rebalanceClusterClients) {
|
||||
this.rebalanceClusterClients = rebalanceClusterClients;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @return the updateClusterClientsOnRemove
|
||||
*/
|
||||
|
@ -540,7 +541,7 @@ public class TransportConnector implements Connector, BrokerServiceAware {
|
|||
public void setUpdateClusterClientsOnRemove(boolean updateClusterClientsOnRemove) {
|
||||
this.updateClusterClientsOnRemove = updateClusterClientsOnRemove;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @return the updateClusterFilter
|
||||
*/
|
||||
|
@ -572,4 +573,4 @@ public class TransportConnector implements Connector, BrokerServiceAware {
|
|||
public void setAuditNetworkProducers(boolean auditNetworkProducers) {
|
||||
this.auditNetworkProducers = auditNetworkProducers;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue