Hi,

tried it also with your Socket Client and works als fine.

Thomas

On Thu, Dec 11, 2014 at 10:20 AM, Thomas Termin <thomas.ter...@gmail.com>
wrote:

> Hi,
>
> just tried the example route builder with mina2 (camel-2.14.0) and it
> works fine using telnet as client.
>
> telnet localhost 6789
> Trying 127.0.0.1...
> Connected to localhost.
> Escape character is '^]'.
> hallo
> Bye hallo
> Connection closed by foreign host.
>
> Which camel version do you use? Can you provide something useful from
> within the logs?
>
> Thomas
>
>
> On Wed, Dec 10, 2014 at 8:05 PM, Saurabh Singhal <earthonclo...@gmail.com>
> wrote:
>
>> Hi
>>
>> Thanks for the reply. Basically when I send the data using a socket
>> programming code as mentioned in the problem, it does not print the
>> output.
>> I even copied the from to code from Apache camel site as below:
>>
>>
>> from("mina2:tcp://localhost:6789?sync=true&textline=true").process(new
>> Processor() {
>>                     public void process(Exchange exchange) throws
>> Exception {
>>                         String body =
>> exchange.getIn().getBody(String.class);
>>                         exchange.getOut().setBody("Bye " + body);
>>
>>
>> exchange.getOut().setHeader(Mina2Constants.MINA_CLOSE_SESSION_WHEN_COMPLETE,
>> true);
>>                     }
>>                 });
>>
>> I have seen a couple of posts which says that there are issues with camel
>> netty4 regarding session etc. Moreover my code is working with mina and
>> not
>> mina2 .. surprising !!
>>
>> Any help would be appreciated. Thanks in advance
>>
>>
>>
>> --
>> View this message in context:
>> http://camel.465427.n5.nabble.com/Apache-Camel-Mina2-not-receiving-data-using-Socket-tp5760372p5760518.html
>> Sent from the Camel - Users mailing list archive at Nabble.com.
>>
>
>

Reply via email to