On Fri, Apr 2, 2010 at 7:02 AM, Muhammad Ichsan <[email protected]> wrote:
> On Fri, Apr 2, 2010 at 2:47 AM, Ashwin Karpe <[email protected]> wrote:
>>
>> Hi,
>>
>> Yes, they will connect to each other since the URL points to the same host
>> and port over TCP.
>
> There is no point doing this. There is a never ending loop when doing
> this. I've tried myself.

Remove the last <to/> and it will send back the result since the from
has sync=true option.



>
>                <route>
>                        <from 
> uri="mina:tcp://localhost:2236?textline=true&amp;sync=true"
> /><!-- As Server -->
>                        <to uri="bean:textUtil?method=reverse" />
>                        <to uri="bean:printer?method=print" />
>                        <to 
> uri="mina:tcp://localhost:2236?textline=true&amp;sync=true"
> /><!-- send the result back to server -->
>                </route>
>
>
> --
> ~The best men are men who benefit to others
> http://michsan.web.id
>
> Yang berkualitas memang beda rasanya!
> http://rizqi-cookies.com
>



-- 
Claus Ibsen
Apache Camel Committer

Author of Camel in Action: http://www.manning.com/ibsen/
Open Source Integration: http://fusesource.com
Blog: http://davsclaus.blogspot.com/
Twitter: http://twitter.com/davsclaus

Reply via email to