Did you try by specifying option directly in the URI by using a toD?

If you think this is a bug, please raise a JIRA in the Apache Camel JIRA.

--
Andrea Cosentino 
----------------------------------
Apache Camel PMC Chair
Apache Karaf Committer
Apache Servicemix PMC Member
Email: ancosen1...@yahoo.com
Twitter: @oscerd2
Github: oscerd






On Wednesday, November 21, 2018, 2:12:23 PM GMT+1, Vladimir Cherepnalkovski 
<cherepnalkov...@hotmail.com> wrote: 





Hi All,

I am trying to create Camel-Box route for downloading older file version.
I am using Camel version 2.22.1


This Is the code

from("seda:downloadFileQueue").setExchangePattern(ExchangePattern.InOut)
        .log("********* Downloading file version *********")
        .setHeader("CamelBox.fileId", method(service, "getFileId"))
        .setHeader("CamelBox.output", method(service, "getFileOutputStream"))
        .setHeader("CamelBox.version", method(service, "getFileVersion"))
        .to("box://files/downloadVersion");

The exception is :
Failed to resolve endpoint: box://files/downloadVersion due to: No matching 
method for files/downloadVersion, with arguments [].

I have tried with “downloadPreviousFileVersions” and “downloadVersion” 
endpoints, but with no success.


Sent from Mail<https://go.microsoft.com/fwlink/?LinkId=550986> for Windows 10

Reply via email to