Thanks a lot Williem.

I just saw that we could have different expressions passed on the filename
parameter, but they do not work.

Example:
              context.addRoutes(new RouteBuilder() {
                  public void configure() {
                       
from("file:C:\\camelProject\\data\\outbox").unmarshal().zip()
                       
.to("file:C:\\camelProject\\data\\inbox?filename=${file:onlyname.noext}&delete=true");
                  }
              });

Reference :
http://camel.apache.org/file-language.html

Error:

org.apache.camel.FailedToCreateRouteException: Failed to create route route1
at: >>> To[file:C:\camelProject\data\inbox?
filename=${file:onlyname.noext}&delete=true] <<< in route:
Route[[From[file:C:\camelProject\data\outbox]] -> [Marshal[o.
.. because of Failed to resolve endpoint:
file://C:\camelProject\data\inbox?delete=true&filename=%24%7Bfile%3Aonlyname.n
oext%7D due to: Failed to resolve endpoint:
file://C:\camelProject\data\inbox?delete=true&filename=%24%7Bfile%3Aonlyname
.noext%7D due to: There are 1 parameters that couldn't be set on the
endpoint. Check the uri if the parameters are spelt
correctly and that they are properties of the endpoint. Unknown
parameters=[{filename=${file:onlyname.noext}}]

Regards,
Ebe


--
View this message in context: 
http://camel.465427.n5.nabble.com/Marshal-and-Unmarshal-files-tp4917704p4917972.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to