Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-9291

GenericFileOnCompletion should NOT allow handOver i.e. should implement SynchronizationVetoable

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Won't Fix
    • 2.16.0
    • None
    • camel-core
    • Moderate
    • Important

    Description

      GenericFileOnCompletion should NOT allow handOver i.e. should implement SynchronizationVetoable

      Route example

       from("file:///tmp")
         .inOnly("seda:someQueue")
         .process(myProcessor)
      

      Currently, since handover is allowed, when consumer of seda:someQueue finished, the GenericFileOnCompletion get executed and move the file to .camel. My processor get execute, it does not see the file i.e. getting FileNotFound exception.

      My seda consumer does not do any file processing. It is merely a listener for file detected event.

      Attachments

        Activity

          People

            davsclaus Claus Ibsen
            khaing211 Howard Nguyen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 1h
                1h
                Remaining:
                Remaining Estimate - 1h
                1h
                Logged:
                Time Spent - Not Specified
                Not Specified