You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by sakchakravarthi <aj...@gmail.com> on 2014/06/24 08:02:51 UTC

Camel file pick up conditionally

Hi 
I have a scenario. I need to pick a file directory. but 1st i need to check
DB record status. If it is true pick file else not. Is this kind of scenario
can be implemented using camel spring dsl configuration.



--
View this message in context: http://camel.465427.n5.nabble.com/Camel-file-pick-up-conditionally-tp5752725.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Camel file pick up conditionally

Posted by Claus Ibsen <cl...@gmail.com>.
Hi

Yes you can do that. You can for example implement a custom filter,
where you return true if the DB check is okay, or false if not.

See the filter option at
http://camel.apache.org/file2



On Tue, Jun 24, 2014 at 2:09 PM, sakchakravarthi
<aj...@gmail.com> wrote:
> Is it possible to pick a file conditionally. To pick a file from dir I need
> to check status in DB. If status is ready then only file should be picked
> up. Is this kind of scenario possible.
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/Camel-file-pick-up-conditionally-tp5752725p5752736.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
Email: cibsen@redhat.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen
hawtio: http://hawt.io/
fabric8: http://fabric8.io/

Re: Camel file pick up conditionally

Posted by sakchakravarthi <aj...@gmail.com>.
Is it possible to pick a file conditionally. To pick a file from dir I need
to check status in DB. If status is ready then only file should be picked
up. Is this kind of scenario possible.



--
View this message in context: http://camel.465427.n5.nabble.com/Camel-file-pick-up-conditionally-tp5752725p5752736.html
Sent from the Camel - Users mailing list archive at Nabble.com.