Package org.springframework.integration.ip.tcp

Examples of org.springframework.integration.ip.tcp.TcpOutboundGateway


    return factory;
  }

  @Bean
  public TcpOutboundGateway tcpOutboundGateway() {
    TcpOutboundGateway gateway = new TcpOutboundGateway();
    gateway.setConnectionFactory(tcpNetClientConnectionFactory());
    gateway.setOutputChannel(directChannel());
    gateway.setReplyChannel(queueChannel());
    gateway.setRequestTimeout(60000);
    gateway.setRemoteTimeout(60000);
    return gateway;
  }
View Full Code Here


            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")) {
View Full Code Here

TOP

Related Classes of org.springframework.integration.ip.tcp.TcpOutboundGateway

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.