Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Save $650 on Qlik Connect, Dec 1 - 7, our lowest price of the year. Register with code CYBERWEEK: Register
cancel
Showing results for 
Search instead for 
Did you mean: 
est412
Contributor II
Contributor II

[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?
Labels (3)
1 Solution

Accepted Solutions
Anonymous
Not applicable

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

View solution in original post

2 Replies
Anonymous
Not applicable

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
est412
Contributor II
Contributor II
Author

Hi americo! 
Thanks a lot! The devil was in "#" symbol... 😃