camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Willem Jiang <willem.ji...@gmail.com>
Subject Re: how to route one request with socket communications by many times?
Date Thu, 28 Jul 2011 07:17:08 GMT
I don't think your processor need to handle the customer protocol. 
You just need to put the message that you want Camel process into the 
exchange.
Then Camel will handle the rest of it.

On Thu Jul 28 09:33:53 2011, xiangqiuzhao wrote:
> i take a look at mina Consumer, i have some question
> 
> MyConsumer must handle the processor in the DSL by "from().process()"? if
> have some processes how to write? why the mina call the process(exchange)
> only once? or it's recursive auto?
> 
> the mina consumer code like :
> 
> //received message
> try {
>                  getProcessor().process(exchange);
>              } catch (Throwable e) {
>                  getExceptionHandler().handleException(e);
>              }
> 
> //write message to request
> 
> 
> --
> View this message in context: http://camel.465427.n5.nabble.com/how-to-route-one-request-with-socket-communications-by-many-times-tp4547395p4640914.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Willem
----------------------------------
FuseSource
Web: http://www.fusesource.com
Blog:    http://willemjiang.blogspot.com (English)
         http://jnn.javaeye.com (Chinese)
Twitter: willemjiang 
Weibo: willemjiang 


Mime
View raw message