1 Reply Latest reply on Nov 4, 2011 3:12 AM by davsclaus

    Camel Mina TCP consumer?

    jamie3_james.archibald

      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.