How to pass Endpoint parameter to Endpoint defined as bean in Spring conext

Posted by sempa on Stack Overflow See other posts from Stack Overflow or by sempa
Published on 2010-05-11T10:35:08Z Indexed on 2010/05/12 6:24 UTC
Read the original article Hit count: 342

Filed under:
|

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

© Stack Overflow or respective owner

Related posts about apache-camel

Related posts about spring