How to pass Endpoint parameter to Endpoint defined as bean in Spring conext
- by sempa
I have camel Fileendpoint defined in following way:
<bean id="hotfolderEndpoint"
class="org.apache.camel.component.file.FileEndpoint"
factory-bean="camel"
factory-method="getEndpoint">
<constructor-arg ref="hotfolder" />
</bean>
I want to define some File parameters such as preMove, move etc.
Variable hotfolder is String taken from JNDI and I have no impact on it.
When I define property as
<bean id="moveExp" class="org.apache.camel.model.language.SimpleExpression">
<property name="expression" value="done/${file:name}"/>
</bean>
it is not correctly parsed and the file get name done/name