Camel route to consume external web service

I thought this was pretty difficult to find a very simple working example. The following works as an example of a polling consumer integration pattern…

  
    
    
    
  

This will do a GET of the URL listed every 30 seconds, and write the content to a directory. This is not of course production ready, but does show the connectors to get it working.

A more complete example which includes business logic is available at http://camel.apache.org/polling-consumer.html

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.