Where do you want to download the file too?
You don't need a processor for that, camel has it all build in.
Try something like:
from("ftp://127.1.1.1/src?password=&fileName=comma.txt&noop=true")
.to(file:localDirectory);
But I really think you should look at the Camel examples first and try them out.
So you start to understand what camel is and how it should be used.
________________________________
Van: milan777 [via Camel] [[email protected]]
Verzonden: maandag 3 juni 2013 13:24
Aan: Wuyts Diether
Onderwerp: Re: Camel-process
ftp_context.addRoutes(new RouteBuilder() {
public void configure() {
Processor ftpProcessor = new Processor() {
public void process(Exchange e) {
Message inboundMessage =
e.getIn();
System.out.println(inboundMessage.getBody(String.class));
from(inboundMessage.getBody(String.class)).to(
"file:src/temp");
}
};
// System.out.println(path);
// from(path).to("file:src/temp");//we must
require temp
// directory in src folder project
//
ftp://[email protected]:21/src?password=cuboidology8?noop=true
from("seda:ftpProcessor").process(ftpProcessor);
}
});
i am not able to download the file from ftp....can anyone help me out
pleasee??? here string
ftp://127.1.1.1/src?password=&fileName=comma.txt&noop=true
is working but still we are not able to get the file :( :(
________________________________
If you reply to this email, your message will be added to the discussion below:
http://camel.465427.n5.nabble.com/Camel-process-tp5733662p5733688.html
To start a new topic under Camel - Users, email
[email protected]
To unsubscribe from Camel - Users, click
here<http://camel.465427.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=465428&code=ZGlldGhlci53dXl0c0BvcHRpcy5iZXw0NjU0Mjh8OTE4NjI3OTg5>.
NAML<http://camel.465427.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
--
View this message in context:
http://camel.465427.n5.nabble.com/Camel-process-tp5733662p5733692.html
Sent from the Camel - Users mailing list archive at Nabble.com.