Spring Integration - TCP SSL Support #4012
-
Hi, I am trying to implement a TCP Server, which does client certificate authentication on its connections. I added a TcpSocketSupport Bean as described in the documentation. However I get a ClassCastException during the serverSocket cast, as it is still a ServerSocket and not a SSLServerSocket. So I tryed (without success) to overwrite the TcpSocketFactorySupport Bean:
But it has no effect. I guess it is not working as I am using the DSL syntax, which does not support SSL?:
Is there a way to set the tcpSocketFactorySupport to DefaultTcpNetSSLSocketFactorySupport via DSL? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
The DSL does not currently support the I will convert this to an issue to add support to the DSL. As a work around you can define a |
Beta Was this translation helpful? Give feedback.
The DSL does not currently support the
tcpSocketFactorySupport
property.I will convert this to an issue to add support to the DSL.
As a work around you can define a
TcpConnectionFactoryFactoryBean
@Bean
instead and inject the object it creates (TcpNetServerConnectionFactory
) into the flow.