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
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.