camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Singh, Ebenezer" <Ebenezer.Si...@VerizonWireless.com>
Subject RE: Marshal and Unmarshal files
Date Wed, 19 Oct 2011 14:36:09 GMT
Thanks, just found out.

-----Original Message-----
From: Claus Ibsen [mailto:claus.ibsen@gmail.com] 
Sent: Wednesday, October 19, 2011 10:33 AM
To: users@camel.apache.org
Subject: Re: Marshal and Unmarshal files

Its with a N in name.

filename
   should be
fileName



On Wed, Oct 19, 2011 at 4:30 PM, ebinsingh
<ebenezer.singh@verizonwireless.com> wrote:
> 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.
>



-- 
Claus Ibsen
-----------------
FuseSource
Email: cibsen@fusesource.com
Web: http://fusesource.com
Twitter: davsclaus, fusenews
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/

Mime
View raw message