Package org.springframework.integration.ip.tcp.connection

Examples of org.springframework.integration.ip.tcp.connection.TcpNetClientConnectionFactory


    return new MindRpcSerializer();
  }

  @Bean
  public TcpNetClientConnectionFactory tcpNetClientConnectionFactory() {
    TcpNetClientConnectionFactory factory = new TcpNetClientConnectionFactory(host, port);
    factory.setSerializer(mindRpcSerializer());
    factory.setDeserializer(mindRpcSerializer());
    return factory;
  }
View Full Code Here


          if (props.containsKey(platformType + ".tcp.host") && props.containsKey(platformType + ".tcp.port")) {
            String host = props.getProperty(platformType + ".tcp.host");
            int port = Integer.parseInt(props.getProperty(platformType + ".tcp.port"));

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

TOP

Related Classes of org.springframework.integration.ip.tcp.connection.TcpNetClientConnectionFactory

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.