List of usage examples for org.springframework.integration.ip.tcp.connection AbstractConnectionFactory registerSender
public void registerSender(TcpSender senderToRegister)
From source file:org.springframework.integration.ip.tcp.TcpSendingMessageHandler.java
/** * Sets the client or server connection factory; for this (an outbound adapter), if * the factory is a server connection factory, the sockets are owned by a receiving * channel adapter and this adapter is used to send replies. * /*from w ww .j a v a 2 s . c om*/ * @param connectionFactory the connectionFactory to set */ public void setConnectionFactory(AbstractConnectionFactory connectionFactory) { if (connectionFactory instanceof AbstractClientConnectionFactory) { this.clientConnectionFactory = connectionFactory; } else { this.serverConnectionFactory = connectionFactory; connectionFactory.registerSender(this); } }