camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <claus.ib...@gmail.com>
Subject Re: pre processing before camel route starts
Date Wed, 29 Jun 2011 13:36:13 GMT
On Wed, Jun 29, 2011 at 3:31 PM, balajiu <balajiu@yahoo.com> wrote:
> Hello,
>
> I have following camel route that picks up file from a directory and process
> it. The route looks like as follows.
>
> from("direct:file://c:///localdir///poller&move=//c:///localdir///archive///${file:name.ext}-${date:now:yyyyMhMdd}"
>
>
> But I want to check for any lock files and delete them in the
> localdir/poller location before route starts.
>

Its just Java code, so just invoke some java code in the configure()
method that cleanup lock files.

Notice Camel does this automatic for its own lock files - .camelLock
They are automatic deleted on startup.



>
> The route is configured in the configure method. I am wondering how do I
> handle the scenario. Please advise.
>
> I appreciate your help.
>
> Thank you,
> Balaji
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/pre-processing-before-camel-route-starts-tp4535133p4535133.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>



-- 
Claus Ibsen
-----------------
FuseSource
Email: cibsen@fusesource.com
Web: http://fusesource.com
Twitter: davsclaus, fusenews
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/

Mime
View raw message