I will read the documentation on writing component, would it take longer to
write new component from scratch using Mina api. would I be able to use load
balancer component with this becuase I need to rotate Ip addresses in case
of IO timeouts or failures.


huntc wrote:
> 
> I do not recommend extending the MINA component. My recommendation is for
> you to roll your own component from scratch. This component should obtain
> the MINA endpoint and invoke its consumers and producers.
> 
> You could do this within a Processor but writing a component should
> structure your code more nicely.
> 
> More on writing components here:
> http://camel.apache.org/writing-components.html
> 
> In summary consider:
> * writing MINA encoders/decoders for your protocol (depending on the
> complexity of your protocol)
> * write a component that utilises a MINA component which in turn
> optionally utilises the encoders and decoders
> 
> That way your route code becomes something like:
> 
> from("file:///test/test/response") 
>   .convertBodyTo(String.class)
>   .to("mycomponent://localhost:6202"); 
>                 
> from("mycomponent://localhost:6202") 
>   .to("log:+++ reply++++"); 
> 
> 

-- 
View this message in context: 
http://old.nabble.com/single-tcp-connection-with-async-requests-and-async-responses-tp27850137p27857892.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to