On Fri, Nov 13, 2009 at 4:14 PM, Allen Lau <[email protected]> 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 <[email protected]> wrote: > >> On Thu, Nov 12, 2009 at 4:18 AM, Allen Lau <[email protected]> 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
