I wonder if this relates to the socket closing issue we observerd, and why we added to our: <ip:tcp-inbound-gateway...> the param connection-factory="incomingMuConnectionFactory".
The <ip:tcp-connection-factory id="incomingMuConnectionFactory"...> then has the param:
interceptor-factory-chain="socketClosingFactoryChain" /> for is this bean:
Code:
<bean id="socketClosingFactoryChain" class="org.springframework.integration.ip.tcp.connection.TcpConnectionInterceptorFactoryChain">
<property name="interceptors">
<array>
<bean class="com.wfb.csts.framework.tcp.connection.SocketClosingInterceptorFactory" />
</array>
</property>
</bean>
The class is then:
Code:
public class SocketClosingInterceptorFactory implements TcpConnectionInterceptorFactory
{
@Override
public TcpConnectionInterceptor getInterceptor() {
return new AbstractTcpConnectionInterceptor()
{
@Override
public void send(Message<?> message) throws Exception {
super.send(message);
this.close();
}
};
}
}