since there is a bug with async route with Mina in camel 2.2.0, I am thinking of writing a custom component to achieve following. I am assuming that I can use load balancer component in case of connection failure to rotate IP addresses in combination with custom component.I will deploy this a war app and I am using spring. I have to use single TCP connection and need to send and receive messages asynchronously. can someone help me with high level steps to achieve this?. I am assuming I don't need to worry about thread synchronization and thread safety as I have to use single connection object.
I am thinking all I need to do is 1. extend defaultcomponent and override createendpoint method to return the same object everytime(declare a singleton spring defaultconnector bean and use annotation to inject into this component). 2. extend defaultproducer and override process methos to send message on singletonobject. 3. extend defaultconsumer and override dostart(establishconnection and register IOhandler for message receive events) and dostop(disconnect) 4. implement messagereceived of IOhandleradapter I am not sure what goes in here, how to pass the message to next processor/endpoint for futher processing?. 5. extend defaultendpoint and override createproducer and return number 2 class above. overrise createconsumer and return number 3 class above. can someone validate this and let me know, if I need to do anything else. -- View this message in context: http://old.nabble.com/custom-component-using-Mina-tp27879624p27879624.html Sent from the Camel - Users mailing list archive at Nabble.com.
