I want to build simple camel application, which will get xml from URL and then send it to another URL.
I was trying with:
from("jetty:http://.../sitemap.xml?delay=5000")
.process(new Processor() {
.....
})
.to("http://...");
and i found couple of problems:
1) i cant get content from the URL automaticly – something is invoking only when i open web browser with the sitemap.xml, but i want, that my script will connect by it self fo every 5 seconds and receive content
2) when i’m trying to connect to localhost i have problem with socket – `java.net.SocketException: Permission denied
maybe you have some simple example to do something what i need ?
`
camel-jetty is for exposing http endpoints, you need to use camel-http4 to consume from remote http sites…
also, use camel-timer for periodic operations like this…