camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Wolf <cwolf.a...@gmail.com>
Subject Re: Problem: file language expression being interpreted as Spring property-placeholder.
Date Wed, 10 Jul 2013 19:36:12 GMT
Thank you! that worked, I used:

fileName=$simple{file:onlyname.noext}.$simple{id}

On Wed, Jul 10, 2013 at 2:57 PM, Claus Ibsen <claus.ibsen@gmail.com> wrote:
> You can use $simple{ xxx } as well as the syntax
>
> On Wed, Jul 10, 2013 at 7:10 PM, Chris Wolf <cwolf.algo@gmail.com> wrote:
>> Hello,
>>
>> I have an endpoint defined as:
>>
>> <to id="file.to.data-decrypted"
>>      uri="file://{{jboss.server.data.dir}}?idempotent=true&amp;preMove={{jboss.server.data.dir}}/holding/${file:onlyname.noext}.${id}&amp;move={{jboss.server.data.dir}}/archive&amp;moveFailed={{jboss.server.data.dir}}/errors&amp;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: cibsen@redhat.com
> Twitter: davsclaus
> Blog: http://davsclaus.com
> Author of Camel in Action: http://www.manning.com/ibsen

Mime
View raw message