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.