TcpNetClientConnectionFactory tnccf = new TcpNetClientConnectionFactory(host, port);
tnccf.setSoTimeout(10000);
tnccf.setSingleUse(true);
TcpOutboundGateway tog = new TcpOutboundGateway();
tog.setBeanName(platformType + "StatusNotifier");
tog.setBeanFactory(context.getBeanFactory());
tog.setChannelResolver(channelResolver);
tog.setConnectionFactory(tnccf);
tog.setRequestTimeout(10000);
tog.setRequiresReply(false);
tog.setOutputChannel(outputChannel);
outputChannel.subscribe(tog);
}
if ((!props.containsKey(platformType + ".tcp.host") || !props.containsKey(platformType + ".tcp.port")) && !props.containsKey(platformType + ".http.statusEndpointURIs")) {