List of usage examples for org.springframework.integration.ip.tcp.connection AbstractClientConnectionFactory start
@Override public void start()
From source file:org.springframework.integration.ip.tcp.connection.FailoverClientConnectionFactory.java
@Override public void start() { for (AbstractClientConnectionFactory factory : this.factories) { factory.start(); }/*from w w w . j a v a 2s. c o m*/ this.setActive(true); super.start(); }
From source file:org.springframework.integration.ip.tcp.TcpOutboundGatewayTests.java
@Test public void testGoodNetGWTimeout() throws Exception { final int port = SocketUtils.findAvailableServerSocket(); AbstractClientConnectionFactory ccf = buildCF(port); ccf.start(); testGoodNetGWTimeoutGuts(port, ccf); }
From source file:org.springframework.integration.ip.tcp.TcpOutboundGatewayTests.java
@Test public void testNetGWPropagatesSocketClose() throws Exception { final int port = SocketUtils.findAvailableServerSocket(); AbstractClientConnectionFactory ccf = new TcpNetClientConnectionFactory("localhost", port); ccf.setSerializer(new DefaultSerializer()); ccf.setDeserializer(new DefaultDeserializer()); ccf.setSoTimeout(10000);/*from w w w . ja v a 2 s.co m*/ ccf.setSingleUse(false); ccf.start(); testGWPropagatesSocketCloseGuts(port, ccf); }
From source file:org.springframework.integration.ip.tcp.TcpOutboundGatewayTests.java
@Test public void testNioGWPropagatesSocketClose() throws Exception { final int port = SocketUtils.findAvailableServerSocket(); AbstractClientConnectionFactory ccf = new TcpNioClientConnectionFactory("localhost", port); ccf.setSerializer(new DefaultSerializer()); ccf.setDeserializer(new DefaultDeserializer()); ccf.setSoTimeout(10000);//from ww w. j a v a 2s.c o m ccf.setSingleUse(false); ccf.start(); testGWPropagatesSocketCloseGuts(port, ccf); }