You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by salemi <sa...@avaya.com> on 2014/12/03 05:54:59 UTC
Camel file2 - get notified when the file is deleted from a
directory in the idempontent mode
Hi,
is it possible to get notified when the file is deleted from a directory in
the idempotent mode
Thanks,
Ali
-----
Alireza Salemi
--
View this message in context: http://camel.465427.n5.nabble.com/Camel-file2-get-notified-when-the-file-is-deleted-from-a-directory-in-the-idempontent-mode-tp5760003.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: Camel file2 - get notified when the file is deleted from a
directory in the idempontent mode
Posted by Claus Ibsen <cl...@gmail.com>.
Hi
You can likely do this out of the box with
idempotentKey=${file.name}-${file.modified}
On Wed, Dec 3, 2014 at 8:17 PM, salemi <sa...@avaya.com> wrote:
> what do you think about the following solution proposed under the following
> link?
>
> http://anydoby.com/jblog/en/camel/1931
>
>
>
> -----
> Alireza Salemi
> --
> View this message in context: http://camel.465427.n5.nabble.com/Camel-file2-get-notified-when-the-file-is-deleted-from-a-directory-in-the-idempontent-mode-tp5760003p5760096.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 file2 - get notified when the file is deleted from a
directory in the idempontent mode
Posted by salemi <sa...@avaya.com>.
what do you think about the following solution proposed under the following
link?
http://anydoby.com/jblog/en/camel/1931
-----
Alireza Salemi
--
View this message in context: http://camel.465427.n5.nabble.com/Camel-file2-get-notified-when-the-file-is-deleted-from-a-directory-in-the-idempontent-mode-tp5760003p5760096.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: Camel file2 - get notified when the file is deleted from a
directory in the idempontent mode
Posted by Claus Ibsen <cl...@gmail.com>.
Hi
No the file component in camel does not trigger when files are deleted.
On Wed, Dec 3, 2014 at 4:28 PM, salemi <sa...@avaya.com> wrote:
> Hi Claus,
>
> I am using the following to read the files in that are added
>
> <route id="configLoader" autoStartup="true">
> <from
> uri="file://{{config.dir}}?idempotent=true&delay=5000&noop=true"/>
> <log loggingLevel="INFO" message="DSI Service Header is ${headers} \n
> The body is: ${body} "/>
> <process ref="configProcessor"/>
> </route>
>
> if I delete the a file from a directory I don't get an exchange. I was
> wondering if there is a way to do that otherwise I can use a watcher for
> deletes.
>
> Thanks,
> Ali
>
>
>
>
>
> -----
> Alireza Salemi
> --
> View this message in context: http://camel.465427.n5.nabble.com/Camel-file2-get-notified-when-the-file-is-deleted-from-a-directory-in-the-idempontent-mode-tp5760003p5760072.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 file2 - get notified when the file is deleted from a
directory in the idempontent mode
Posted by salemi <sa...@avaya.com>.
Hi Claus,
I am using the following to read the files in that are added
<route id="configLoader" autoStartup="true">
<from
uri="file://{{config.dir}}?idempotent=true&delay=5000&noop=true"/>
<log loggingLevel="INFO" message="DSI Service Header is ${headers} \n
The body is: ${body} "/>
<process ref="configProcessor"/>
</route>
if I delete the a file from a directory I don't get an exchange. I was
wondering if there is a way to do that otherwise I can use a watcher for
deletes.
Thanks,
Ali
-----
Alireza Salemi
--
View this message in context: http://camel.465427.n5.nabble.com/Camel-file2-get-notified-when-the-file-is-deleted-from-a-directory-in-the-idempontent-mode-tp5760003p5760072.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: Camel file2 - get notified when the file is deleted from a
directory in the idempontent mode
Posted by Claus Ibsen <cl...@gmail.com>.
Hi
What do you mean? Do you mean that some 3rd party delete a file, and
you want Camel to "notify" about this event?
If so then no. But you can use the java api to get file notifications.
Java 7 has the new api for that.
On Wed, Dec 3, 2014 at 5:54 AM, salemi <sa...@avaya.com> wrote:
> Hi,
>
> is it possible to get notified when the file is deleted from a directory in
> the idempotent mode
>
> Thanks,
> Ali
>
>
>
> -----
> Alireza Salemi
> --
> View this message in context: http://camel.465427.n5.nabble.com/Camel-file2-get-notified-when-the-file-is-deleted-from-a-directory-in-the-idempontent-mode-tp5760003.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/