I am total newbie in Camel, but hope here I am right ...
.. The Camel looks pretty powerfull for my needs, but i don't found any
sample, than make something similar. I want perform parallely two or more
request into some search engines and get back the only dirst request. Just
like the example below have to send back the the winner from 2 searches,
where win the first finished search:
like
Input: "Camel Apache"
Process:: 
  1) http://www.google.de/search?q=Camel+Apache
  2) http://www.bing.com/search?q=Camel+Apache
Output:::
  resp1!=null? {1} : {2}

Assumes the response have the similar format (xhtml for ex.) and need not to
be converted at all. Just for start the pure RAW will be ok.  In another
words the looser's answer will be ignored/broken. 

I just found the sample for Camel+Tomcat, but...
...really it is not so easy to make a fist step! Which EIP is it? Please
help! It should be really simple.


 

        
            
            
            
                
                    
                    search
                    
                     
                
                
                    
                    
                        Add a search to uri, eg ?search=camel
                    
                
            
        
    
 
 



--
View this message in context: 
http://camel.465427.n5.nabble.com/choose-the-1st-from-two-many-Search-responses-tp4495659p4495659.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to