[resolved] cFile setting "filter" property from "Advanced serttings" tab
Hello! I am trying to listen to a file directory for specific files and have implemented my own GenericFileFilter implementation (named beans.CompleteFileFilter). How should I refer to it from "filter" property in "Advanced serttings"? Trying to use cBeanRegister like this ID = "bean" Class name = beans.CompleteFileFilter and adding to cFile "Advanced serttings" new line with name = "filter" value = "bean" I'm getting the error: Could not find a suitable setter for property: filter as there isn't a setter method with same type: java.lang.String nor type conversion possible: No type converter available to convert from type: java.lang.String to the required type: org.apache.camel.component.file.GenericFileFilter with value bean Pleas, can anyone help me?
Hi,
You should try with cMessagingEndpoint component in Talend Studio. It offers more configuration possibilities when neededs.
The URI to set would look like """".
"#myFilter" would be a reference to your filter bean defined within Spring configuration (Spring tab in Talend Studio). Your Spring configuration should look like this for example:
<bean id="myFilter" class="beans.CompleteFileFilter">
<property name="includes" value="**/subfolder/**/*day*"/>
<property name="excludes" value="**/*bad*,**/*.xml"/>
</bean>
Do not hesitate to check Camel page for more information. Hope that helps.
Regards
Hi,
You should try with cMessagingEndpoint component in Talend Studio. It offers more configuration possibilities when neededs.
The URI to set would look like """".
"#myFilter" would be a reference to your filter bean defined within Spring configuration (Spring tab in Talend Studio). Your Spring configuration should look like this for example:
<bean id="myFilter" class="beans.CompleteFileFilter">
<property name="includes" value="**/subfolder/**/*day*"/>
<property name="excludes" value="**/*bad*,**/*.xml"/>
</bean>
Do not hesitate to check Camel page for more information. Hope that helps.
Regards