camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Strachan (JIRA)" <j...@apache.org>
Subject [jira] Assigned: (CAMEL-340) Mina TCP does not support InOut pattern
Date Wed, 27 Feb 2008 09:38:17 GMT

     [ https://issues.apache.org/activemq/browse/CAMEL-340?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

James Strachan reassigned CAMEL-340:
------------------------------------

    Assignee: Hadrian Zbarcea

fancy applying this patch before 1.3.0? 

> Mina TCP does not support InOut pattern
> ---------------------------------------
>
>                 Key: CAMEL-340
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-340
>             Project: Apache Camel
>          Issue Type: Bug
>          Components: camel-mina
>    Affects Versions: 1.2.0
>            Reporter: Claus Ibsen
>            Assignee: Hadrian Zbarcea
>         Attachments: camel_340_patch.txt, MinaTcpWithInOutUsingPlainSocketTest.java
>
>
> See this thread:
> http://www.nabble.com/camel-mina-TCP-InOut-exchange-td15530602s22882.html
> This builder does not support InOut when a client send a textline to localhost:8888.
> The client never receives a response.
> url = "mina:tcp://localhost:8888?textline=true";
> from(uri).process(new Processor() {
>                     public void process(Exchange e) {
>                         String in = e.getIn().getBody(String.class);
>                         // append newline at end to denote end of data for textline codec
>                         e.getOut().setBody("Hello " + in + "\n");
>                     }
>                 });
> Attached is a patch that fixes this by introducing a new parameter to the URL for fluent
builder sync=true (ie is there a better name?)
> Using this url instead and the patch then Camel will send a response back to the client:
> mina:tcp://localhost:8888?textline=true&sync=true

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message