8 Replies Latest reply on Oct 15, 2010 10:27 PM by julianc

    can't get "enrich" to work

    julianc

      Hi,

       

      I just started playing with this stuff and I'm trying to duplicate some legacy functionality.

       

      We have a system which exports xml files via ftp and when a file is complete it creates another file with the same name but a .mrk extension.

       

      So it seems to me that I could have a file consumer filtered on the mrk file and then enrich it with the xml file. Without the pollEnrich I can get the mrk file copied to the output but with the pollEnrich nothing happens. Using the latest windows binaries.

       

      Here is the xml for my route:

       

       

          <pollEnrich timeout="0" uri="file://D:\Downloads?fileName=$.xml" inheritErrorHandler="true" id="enrich2"/>

           

       

      I get a java exception saying Camel doesn't currently support pollEnrich where both consumers are files.

       

      Any ideas about alternative approaches?

       

      Julian

       

      Edited by: julianc on Sep 24, 2010 3:31 AM

       

      Edited by: julianc on Sep 24, 2010 3:36 AM