I am using Apache Camel netty4 component in a producer mode with endpoint configured like this:
<from>
<...>
</from>
<to>
<endpoint:uriRouteEndpoint uri="netty4:tcp://127.0.0.1:12345"/>
</to>
When there is a message to send the netty endpoint here acts as a TCP client lazily initiating connection to the socket specified.
Is there a simple solution to make it act as a TCP server instead, i.e. to wait untill the TCP connection is initiated and established by a client software before sending messages?