Thank you! that worked, I used:
fileName=$simple{file:onlyname.noext}.$simple{id}
On Wed, Jul 10, 2013 at 2:57 PM, Claus Ibsen <[email protected]> wrote:
> You can use $simple{ xxx } as well as the syntax
>
> On Wed, Jul 10, 2013 at 7:10 PM, Chris Wolf <[email protected]> wrote:
>> Hello,
>>
>> I have an endpoint defined as:
>>
>> <to id="file.to.data-decrypted"
>>
>> uri="file://{{jboss.server.data.dir}}?idempotent=true&preMove={{jboss.server.data.dir}}/holding/${file:onlyname.noext}.${id}&move={{jboss.server.data.dir}}/archive&moveFailed={{jboss.server.data.dir}}/errors&readLock=changed"/>
>>
>>
>> Which throws this exception:
>>
>> Caused by: org.springframework.beans.factory.BeanDefinitionStoreException:
>> Invalid bean definition with name 'file.to.data-decrypted' defined in
>> null: Could not resolve placeholder 'id'
>> at
>> org.springframework.beans.factory.config.PlaceholderConfigurerSupport.doProcessProperties(PlaceholderConfigurerSupport.java:209)
>> at
>> org.springframework.beans.factory.config.PropertyPlaceholderConfigurer.processProperties(PropertyPlaceholderConfigurer.java:220)
>>
>> I am quite sure, previously, I was able to use "${id}" in the filename
>> expression and it was not interpreted as a Spring property
>> placeholder,
>> and I didn't reconfigure the opening/closing tokens for property
>> placeholders. Anyone have a clue?
>>
>> Thanks,
>>
>>
>> Chris
>
>
>
> --
> Claus Ibsen
> -----------------
> Red Hat, Inc.
> Email: [email protected]
> Twitter: davsclaus
> Blog: http://davsclaus.com
> Author of Camel in Action: http://www.manning.com/ibsen