You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by milan777 <mi...@gmail.com> on 2013/06/03 10:21:28 UTC
Camel-process
Can we write process inside process in camel? how?
--
View this message in context: http://camel.465427.n5.nabble.com/Camel-process-tp5733662.html
Sent from the Camel - Users mailing list archive at Nabble.com.
RE: Camel-process
Posted by Diether <di...@optis.be>.
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] [ml-node+s465427n5733688h75@n5.nabble.com]
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://cuboidology8@127.1.2.3: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 ml-node+s465427n465428h15@n5.nabble.com
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.
Re: Camel-process
Posted by milan777 <mi...@gmail.com>.
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://cuboidology8@127.1.2.3: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 :( :(
--
View this message in context: http://camel.465427.n5.nabble.com/Camel-process-tp5733662p5733688.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: Camel-process
Posted by Christian Müller <ch...@gmail.com>.
Please take some more time to ask questions and study [1].
[1] http://camel.apache.org/support.html
Best,
Christian Müller
-----------------
Software Integration Specialist
Apache Camel committer: https://camel.apache.org/team
V.P. Apache Camel: https://www.apache.org/foundation/
Apache Member: https://www.apache.org/foundation/members.html
https://www.linkedin.com/pub/christian-mueller/11/551/642
On Mon, Jun 3, 2013 at 10:21 AM, milan777 <mi...@gmail.com> wrote:
> Can we write process inside process in camel? how?
>
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/Camel-process-tp5733662.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>