I have a case where I need to do the following:
1) Connect to a TCP port
2) Keep the connection alive (or re-connect if it becomes disconnected)
3) Send out a message to a camel route for every textline
for example:
// connect to another machine and receive text
from("mina:tcp://1.2.3.4?textline=true&keepConnectionAlive=true")
.to("direct:foo");
Currently the camel-mina endpoint acts only as a server which it tries to bind to the local machine's IP address.
Yes this is not support by camel-mina.
We are working on a camel-mina2 component first.
And then we most likely will add support for in the future. There is a couple of JIRA tickets about this in the Apache Camel JIRA tracker.