camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <claus.ib...@gmail.com>
Subject Re: Mina endpoint behaviour
Date Fri, 02 Apr 2010 06:10:40 GMT
On Fri, Apr 2, 2010 at 7:02 AM, Muhammad Ichsan <ichsan@gmail.com> wrote:
> On Fri, Apr 2, 2010 at 2:47 AM, Ashwin Karpe <askarpe@progress.com> 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

Mime
View raw message