You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Allen Lau <al...@gmail.com> on 2009/11/12 04:18:43 UTC
Dynamically setting initialDelay & delay parameters for File
component?
Hi,
I am using the File2 component with Spring DSL.
Can not seem to find a good way to externalize the options of the File2
component that take an "int" like
initialDelay and delay.
For example, the following will fail.
<from
uri="file://inDirectory?initialDelay=${initialDelayValue}&delay=${delayValue}"
/>
Any suggestions?
Thanks,
Allen
Re: Dynamically setting initialDelay & delay parameters for File
component?
Posted by Allen Lau <al...@gmail.com>.
Ahh okay, didn't think of that. Thanks for the help.
On Fri, Nov 13, 2009 at 7:23 AM, Claus Ibsen <cl...@gmail.com> wrote:
> On Fri, Nov 13, 2009 at 4:14 PM, Allen Lau <al...@gmail.com> wrote:
> > Thanks, that is partially what I'm looking for.
> >
> > If I set the properties by defining an endpoint, I lose the ability to
> use
> > the File language
> > expressions. Basically the only thing I'm missing is the ability to
> make
> > the move and done directory names with a timestamp suffix. I want them
> > rotate those directories daily.
> >
> > Is there a way to accomplish what I described?
> >
>
> Yeah use spring bean style
>
> <bean id="myFileEndpint" class="org...FileEndpoint">
> <property name value />
> ...
> </bean>
>
> > Thanks,
> > Allen
> >
> > On Wed, Nov 11, 2009 at 9:24 PM, Claus Ibsen <cl...@gmail.com>
> wrote:
> >
> >> On Thu, Nov 12, 2009 at 4:18 AM, Allen Lau <al...@gmail.com> wrote:
> >> > Hi,
> >> >
> >> > I am using the File2 component with Spring DSL.
> >> >
> >> > Can not seem to find a good way to externalize the options of the
> File2
> >> > component that take an "int" like
> >> > initialDelay and delay.
> >> >
> >> > For example, the following will fail.
> >> >
> >> > <from
> >> >
> >>
> uri="file://inDirectory?initialDelay=${initialDelayValue}&delay=${delayValue}"
> >> > />
> >> >
> >> > Any suggestions?
> >> >
> >>
> >> See this FAQ
> >>
> >>
> http://camel.apache.org/how-do-i-use-spring-property-placeholder-with-camel-xml.html
> >>
> >>
> >> > Thanks,
> >> > Allen
> >> >
> >>
> >>
> >>
> >> --
> >> Claus Ibsen
> >> Apache Camel Committer
> >>
> >> Author of Camel in Action: http://www.manning.com/ibsen/
> >> Open Source Integration: http://fusesource.com
> >> Blog: http://davsclaus.blogspot.com/
> >> Twitter: http://twitter.com/davsclaus
> >>
> >
>
>
>
> --
> Claus Ibsen
> Apache Camel Committer
>
> Author of Camel in Action: http://www.manning.com/ibsen/
> Open Source Integration: http://fusesource.com
> Blog: http://davsclaus.blogspot.com/
> Twitter: http://twitter.com/davsclaus
>
Re: Dynamically setting initialDelay & delay parameters for File
component?
Posted by Claus Ibsen <cl...@gmail.com>.
On Fri, Nov 13, 2009 at 4:14 PM, Allen Lau <al...@gmail.com> wrote:
> Thanks, that is partially what I'm looking for.
>
> If I set the properties by defining an endpoint, I lose the ability to use
> the File language
> expressions. Basically the only thing I'm missing is the ability to make
> the move and done directory names with a timestamp suffix. I want them
> rotate those directories daily.
>
> Is there a way to accomplish what I described?
>
Yeah use spring bean style
<bean id="myFileEndpint" class="org...FileEndpoint">
<property name value />
...
</bean>
> Thanks,
> Allen
>
> On Wed, Nov 11, 2009 at 9:24 PM, Claus Ibsen <cl...@gmail.com> wrote:
>
>> On Thu, Nov 12, 2009 at 4:18 AM, Allen Lau <al...@gmail.com> wrote:
>> > Hi,
>> >
>> > I am using the File2 component with Spring DSL.
>> >
>> > Can not seem to find a good way to externalize the options of the File2
>> > component that take an "int" like
>> > initialDelay and delay.
>> >
>> > For example, the following will fail.
>> >
>> > <from
>> >
>> uri="file://inDirectory?initialDelay=${initialDelayValue}&delay=${delayValue}"
>> > />
>> >
>> > Any suggestions?
>> >
>>
>> See this FAQ
>>
>> http://camel.apache.org/how-do-i-use-spring-property-placeholder-with-camel-xml.html
>>
>>
>> > Thanks,
>> > Allen
>> >
>>
>>
>>
>> --
>> Claus Ibsen
>> Apache Camel Committer
>>
>> Author of Camel in Action: http://www.manning.com/ibsen/
>> Open Source Integration: http://fusesource.com
>> Blog: http://davsclaus.blogspot.com/
>> Twitter: http://twitter.com/davsclaus
>>
>
--
Claus Ibsen
Apache Camel Committer
Author of Camel in Action: http://www.manning.com/ibsen/
Open Source Integration: http://fusesource.com
Blog: http://davsclaus.blogspot.com/
Twitter: http://twitter.com/davsclaus
Re: Dynamically setting initialDelay & delay parameters for File
component?
Posted by Allen Lau <al...@gmail.com>.
Thanks, that is partially what I'm looking for.
If I set the properties by defining an endpoint, I lose the ability to use
the File language
expressions. Basically the only thing I'm missing is the ability to make
the move and done directory names with a timestamp suffix. I want them
rotate those directories daily.
Is there a way to accomplish what I described?
Thanks,
Allen
On Wed, Nov 11, 2009 at 9:24 PM, Claus Ibsen <cl...@gmail.com> wrote:
> On Thu, Nov 12, 2009 at 4:18 AM, Allen Lau <al...@gmail.com> wrote:
> > Hi,
> >
> > I am using the File2 component with Spring DSL.
> >
> > Can not seem to find a good way to externalize the options of the File2
> > component that take an "int" like
> > initialDelay and delay.
> >
> > For example, the following will fail.
> >
> > <from
> >
> uri="file://inDirectory?initialDelay=${initialDelayValue}&delay=${delayValue}"
> > />
> >
> > Any suggestions?
> >
>
> See this FAQ
>
> http://camel.apache.org/how-do-i-use-spring-property-placeholder-with-camel-xml.html
>
>
> > Thanks,
> > Allen
> >
>
>
>
> --
> Claus Ibsen
> Apache Camel Committer
>
> Author of Camel in Action: http://www.manning.com/ibsen/
> Open Source Integration: http://fusesource.com
> Blog: http://davsclaus.blogspot.com/
> Twitter: http://twitter.com/davsclaus
>
Re: Dynamically setting initialDelay & delay parameters for File
component?
Posted by Claus Ibsen <cl...@gmail.com>.
On Thu, Nov 12, 2009 at 4:18 AM, Allen Lau <al...@gmail.com> wrote:
> Hi,
>
> I am using the File2 component with Spring DSL.
>
> Can not seem to find a good way to externalize the options of the File2
> component that take an "int" like
> initialDelay and delay.
>
> For example, the following will fail.
>
> <from
> uri="file://inDirectory?initialDelay=${initialDelayValue}&delay=${delayValue}"
> />
>
> Any suggestions?
>
See this FAQ
http://camel.apache.org/how-do-i-use-spring-property-placeholder-with-camel-xml.html
> Thanks,
> Allen
>
--
Claus Ibsen
Apache Camel Committer
Author of Camel in Action: http://www.manning.com/ibsen/
Open Source Integration: http://fusesource.com
Blog: http://davsclaus.blogspot.com/
Twitter: http://twitter.com/davsclaus