Hi
Yes it should be dead simple.
What version of Camel are you using?
You could try to enable org.apache.camel debug logging using eg. Log4j to see
if FileProducer is used for writing the file.
You could also try with a simple test from("direct:xxd") instead of jetty to
see if a file is produced then.
I can't crank up code at the moment as the laptop is on my legs as I watch the
Holland-Italy football game.
Med venlig hilsen
Claus Ibsen
......................................
Silverbullet
Skovsgårdsvænget 21
8362 Hørning
Tlf. +45 2962 7576
Web: www.silverbullet.dk
-----Original Message-----
From: Patrick Shea [mailto:[EMAIL PROTECTED]
Sent: 9. juni 2008 20:40
To: [email protected]
Subject: from http://... to file://...
Hi all, I am trying to read from an http endpoint and save the content to a
file but the to("file://...") seems to be trying to read the file and not write
to it!
I've looked at all the unit tests and search for an answer but I still can't
figure it out.
from("jetty:http://localhost:8888/hello").setHeader(FileComponent.HEADER_FILE_NAME,
"message.txt").to("file:target/hello");
This should be simple no?
Thanks
Patrick