Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-1077

tcp client mode / server mode determined by "to" or "from" elements limits usability.

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.0.0, 1.1.0, 1.2.0, 1.3.0, 1.4.0, 1.5.0
    • Fix Version/s: 2.15.0
    • Component/s: camel-mina
    • Labels:
      None

      Description

      Internally,

      MinaProducer is coded to create a Mina connector (client mode socket).
      MinaConsumer is coded to create a Mina acceptor (server mode socket).

      Additionally, it appears a producer (client mode socket) is created for a "to" route mapping and a consumer (server mode socket) is created for a "from" route mapping.

      This means an endpoint cannot be created in which the session is initiated by a client and messages are routed "to" the client.

      The opposite is also true, an endpoint with a "from" route mapping cannot establish a connection to a tcp server.

      This is a major limitation, as we do not often have control over the systems with which we are interfacing.

      Perhaps, the mina::tcp URI could have a parameter the sets the socket mode: tcp.mode=server or tcp.mode=client.

      Hope this make sense, thanks!

        Attachments

          Activity

            People

            • Assignee:
              njiang Willem Jiang
              Reporter:
              jeff_v Jeff Vienneau
            • Votes:
              5 Vote for this issue
              Watchers:
              15 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: