camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ashwin Karpe <aska...@progress.com>
Subject Re: Mina endpoint behaviour
Date Thu, 01 Apr 2010 19:47:36 GMT

Hi,

Yes, they will connect to each other since the URL points to the same host
and port over TCP.

Cheers,

Ashwin...



Muhammad Ichsan wrote:
> 
> On Thu, Apr 1, 2010 at 7:13 PM, Ashwin Karpe <askarpe@progress.com> wrote:
>>
>> Hi,
>>
>> You cannot do it the way you have detailed. The endpoint in the from()
>> clause will create a TCP Listener and bind to a socket (aka server).
>>
>> You could do the following and accomplish your objective
>>
>> In Client
>> ----------
>>    from (...)
>>       .to(mina:tcp://localhost:5000?sync=true")                // Client
>>       .to("bean:processResponse");
>>
>> In Server
>> ----------
>>    from(mina:tcp://localhost:5000?sync=true")              // Server
>>       .to("bean:processData");
> 
> I think the routes above will connect each other, won't they? The
> first to(mina) will connect to from(mina)
> 
> 
> -- 
> ~The best men are men who benefit to others
> http://michsan.web.id
> 
> 


-----
--- 
Ashwin Karpe, Principal Consultant, PS - Opensource Center of Competence 
Progress Software Corporation
14 Oak Park Drive
Bedford, MA 01730
--- 
+1-972-304-9084 (Office) 
+1-972-971-1700 (Mobile) 
---- 
Blog: http://opensourceknowledge.blogspot.com/


-- 
View this message in context: http://old.nabble.com/Mina-endpoint-behaviour-tp28104796p28112840.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Mime
View raw message