[ 
https://issues.apache.org/jira/browse/CAMEL-11250?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16268056#comment-16268056
 ] 

ASF GitHub Bot commented on CAMEL-11250:
----------------------------------------

GitHub user sermojohn opened a pull request:

    https://github.com/apache/camel/pull/2123

    CAMEL-11250: File name pattern and file predicate for poll enrich use.

    I followed the proposed approach (in Jira) for providing exchange 
information to poll enrich, while using a static endpoint uri, in order to 
avoid starting a new thread for each exchange that triggers poll enrich to 
consume messages.
    
    In addition to having a header with the file name pattern, which is used 
for querying the file that will be returned, an extra header is provided that 
is used with a predicate value, giving greater control for file filtering in 
poll enrich.
    
    I would appreciate your review and feedback!

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/sermojohn/camel CAMEL-11250

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/camel/pull/2123.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #2123
    
----
commit 6166842668d2a6908953aaafc630ccd1eb5e85dd
Author: Ioannis Sermetziadis <sermoj...@gmail.com>
Date:   2017-11-28T03:31:04Z

    CAMEL-11250: File name pattern and file predicate for poll enrich use.

----


> File consumer - Allow to specify a header that has the file name to poll
> ------------------------------------------------------------------------
>
>                 Key: CAMEL-11250
>                 URL: https://issues.apache.org/jira/browse/CAMEL-11250
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-core
>            Reporter: Claus Ibsen
>             Fix For: Future
>
>
> See SO
> http://stackoverflow.com/questions/43849165/camel-pollenrich-generating-a-lot-of-timed-waiting-threads
> We can have a FILE_FILTER_NAME header that matches in the 
> org.apache.camel.component.file.GenericFileConsumer#isMatched(org.apache.camel.component.file.GenericFile<T>,
>  boolean, java.util.List<T>)
> so end users can set the header first and then do a pollEnrich with a static 
> endpoint.
> The header can then use equalsIgnoreCase and reguar exp for matching, to make 
> it easier to match files.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to