I have a program running on a remote host to which I need to connect,
handshake, and then listen for messages. I have setup the following camel
route:
<route>
<from
uri="netty:tcp://localhost:50001?decoders=#decoders&sync=false" />
<bean ref="TransformMessage" method="inboundDecoder" />
<to uri="eventadmin:messages/aacus/inbound" />
</route>
<route>
<from uri="eventadmin:messages/aacus/outbound" />
<bean ref="TransformMessage" method="outboundEncoder" />
<to
uri="netty:tcp://192.168.0.111:50001?allowDefaultCodec=false&sync=false"
/>
</route>
My question is how do I make this work? If I establish the route using
`<from
uri="netty:tcp://192.168.0.111:50001?decoders=#decoders&sync=false" />`
it fails with a binding error.
How can I setup the connection to respond on a specific port without
modifying the server?
--
View this message in context:
http://camel.465427.n5.nabble.com/two-way-communication-with-TCP-server-using-Netty-tp4702360p4702360.html
Sent from the Camel - Users mailing list archive at Nabble.com.