Hello,  thanks Camel lovers !! greatly appreciated , I need help, can’t
figure it out.  

I am in need of help, I am trying to use the pollEnrich EIP, of which It
works, in the sense that no dynamic building takes place. 

The situation is that I have files coming in from email, and sftp, that have
a time stamp at the end of the file name, to maintain uniqueness. 
Example:
CMAS_LPD22_MPDE1A_PG1_2016-12-13_090023.csv

I need to be able to use wild cards or something to be able to retrieve the
file into the pollEnrich route. 
This is what I’ve tried.

          <endpoint id="navSeaJoinRoute"
uri="{{fileJoinEndpoint}}?fileName=CMAS_LPD22_MPDE1A_PG2*.csv" /> 
       <route 
              id="navsea.core.fileJoinRoute"
              autoStartup="true">
              <from uri="{{fileJoinEndpoint}}" /> 
              <choice>
                     <when>
                           <simple>${header.CamelFileName} contains
"CMAS_LPD22_MPDE1A_PG1" </simple>
                           <log message="${file:onlyname.noext} ready for
pollEnrichment" />
 
 
 


    <jboss.fuse.bom.version>6.2.0.redhat-133</jboss.fuse.bom.version> 
    <camel-version>2.15.1.redhat-620133</camel-version>




--
View this message in context: 
http://camel.465427.n5.nabble.com/pollEnrich-and-variable-file-names-time-stamp-tp5792827.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to