[ https://issues.apache.org/activemq/browse/CAMEL-3043?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=62104#action_62104 ]
Christian Mueller commented on CAMEL-3043: ------------------------------------------ Yeah, it works with Camel 2.2.0 (the version we currently use), If I change the definition of Springs PropertyPlaceholderConfigurer to {code:xml} <bean id="propertyPlaceholder" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"> <property name="ignoreUnresolvablePlaceholders" value="true" /> <property name="location" value="classpath:bundle-context.cfg" /> </bean> {code} Thank's for this hint. But with Camel 2.4.0, the out file has the name "test-now:yyyyMMdd.txt" instead of "test-20100925.txt" as it is in Camel 2.2.0. Is this a known issue/behavior or a feature? Cheers, Christian > Improve the file-language wiki page > ----------------------------------- > > Key: CAMEL-3043 > URL: https://issues.apache.org/activemq/browse/CAMEL-3043 > Project: Apache Camel > Issue Type: Improvement > Components: documentation > Affects Versions: 2.4.0 > Reporter: Christian Mueller > Assignee: Christian Mueller > Fix For: 2.5.0 > > > We had a problem to use the file-language in our Spring XML configuration > which uses a > org.springframework.beans.factory.config.PropertyPlaceholderConfigurer: > We received the follwowing exception: > > org.springframework.beans.factory.BeanDefinitionStoreException: Invalid bean > definition with name 'fileRoute' defined in class path resource > [META-INF/spring/fileRoute.xml]: Could not resolve placeholder > 'date:now:yyyyMMdd' > {code} > <ctx:property-placeholder location="classpath:bundle-context.cfg" /> > <bean id="fileRoute" class="com.company.FileRoute"> > <property name="fromEndpoint" > value="${com.company.FileRoute.fromEndpoint}" /> > <property name="toEndpoint" value="${com.company.FileRoute.toEndpoint}" /> > </bean> > {code} > {code} > com.company.FileRoute.fromEndpoint=activemq:queue:test > com.company.FileRoute.toEndpoint=file:d:/fileRoute/out?fileName=test-${date:now:yyyyMMdd}.txt > {code} > I would like to improve the wiki page for the > [file-language|http://camel.apache.org/file-language.html] with solutions > described here: > - http://forum.springsource.org/archive/index.php/t-71202.html > - > http://cmoulliard.blogspot.com/2009/05/trick-to-pass-uri-declared-in-property.html > and my be here: > - https://cwiki.apache.org/confluence/display/CAMEL/Using+PropertyPlaceholder > ;o) > Christian -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.