Try with

.setProperty("bodyBackup", simple("body"))

On Sat, Oct 31, 2015 at 4:40 PM, contactreji <contactr...@gmail.com> wrote:
> Hey
>
> Any Groovy experts out there who has tried writing Camel Simple expression
> in groovy camel routes? Can someone post an example.
>
> I tried
> *rom("file:C:\\Users\\Mathews\\Desktop\\in").log(LoggingLevel.INFO,"BasicRouteLogger","Received
> File").setProperty("bodyBackup",$simple{body}).log("Done ").end()*
>
> but its throwing exceptions
>
> Cheers
> Reji
>
>
>
> -----
> Reji Mathews
> Sr. Developer - Middleware Integration / SOA ( Open Source - Apache Camel & 
> Jboss Fuse ESB | Mule ESB )
> LinkedIn - http://in.linkedin.com/pub/reji-mathews/31/9a2/40a
> Twitter - reji_mathews
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/Camel-Simple-expressions-in-Groovy-tp5773187p5773294.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
http://davsclaus.com @davsclaus
Camel in Action 2nd edition:
https://www.manning.com/books/camel-in-action-second-edition

Reply via email to