Hi

Yeah see the filter eip to filter out when you use direct:xxx
http://camel.apache.org/message-filter.html

On Wed, Mar 5, 2014 at 6:16 PM, mister blinky <[email protected]> wrote:
> hmm... I need my direct:MoveUpload b/c it's called from various other routes.
> It's a generic route. Is there another way?
>
> One approach might be to filter out the unwanted file. There's no
> include/exclude on FTP. I'm using java dsl so can't use ANT filter. I could
> use GenericFilter i suppose. But is there a more standard way to deal with
> this?
>
> Would it be your suggestion that rather than use
>
> from("direct:moveUpload")
>         .log("@@@ MoveUpload: Using properties: " + propsId)
>         .from("file://{{move.from.dir}}?noop=true")
>
> .recipientList(simple("ftp://{{move.to.user}}@{{move.to.host}}/{{move.to.dir}}?password={{move.to.pwd}}{{move.to.uriparams}}";))
>
> I just use
>
>
> from("file://{{move.from.dir}}?noop=true")
>
> .recipientList(simple("ftp://{{move.to.user}}@{{move.to.host}}/{{move.to.dir}}?password={{move.to.pwd}}{{move.to.uriparams}}";))
>
> ? If so, how would I use this flow as a part of a larger flow, in which i
> branch from some other route to this one?
>
> thanks for your time and thoughts.
>
>
>
>
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/How-to-prevent-ftp-from-creating-ID-file-tp5748344p5748350.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
Email: [email protected]
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen
Make your Camel applications look hawt, try: http://hawt.io

Reply via email to