Hi

You need to enable the textline codec on netty endpoint
http://camel.apache.org/netty

                        <camel:from
uri="netty:tcp://0.0.0.0:8282?textline=true" />


On Mon, Aug 15, 2011 at 10:00 PM, Tereza Nedelescu
<[email protected]> wrote:
> Hi,
>
> I am trying to route the input coming from a socket to a file.
> The Spring code is the following:
>                <camel:route>
>                        <camel:from uri="netty:tcp://0.0.0.0:8282" />
>                        <camel:to uri="file:/path/output/Pipeline" />
>                </camel:route>
>
> This is how I try to send data to the socket from bash:
> cat test
> 111111111111111
> 222222222
> 3333333333333333
> [root@dapptnedelescu01 webapps]$ *cat test | nc localhost 8282*
> [root@dapptnedelescu01 webapps]$ cat ../logs/catalina.out | grep 8282
> INFO: Netty consumer bound to: 0.0.0.0:8282
> INFO: Route: route1 started and consuming from: Endpoint[tcp://0.0.0.0:8282]
>
> The route is consuming from port 8282. However, the output file does not end
> up with the data from "test".
> Am I doing this in the wrong way ? Please, let me know how to get the
> message properly routed.
>
> Thank you,
> Tereza
>
>
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/Routing-socket-input-to-file-output-doesn-t-work-tp4702177p4702177.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>



-- 
Claus Ibsen
-----------------
FuseSource
Email: [email protected]
Web: http://fusesource.com
Twitter: davsclaus, fusenews
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/

Reply via email to