It could be done by writing a custom TypeConverter[1], and you can turn the 
message body into BeanInvocation like this
from(xxx).setBody(body(BeanInvocation.class))

[1] http://camel.apache.org/type-converter.html  

--  
Willem Jiang

Red Hat, Inc.
FuseSource is now part of Red Hat
Web: http://www.fusesource.com | http://www.redhat.com
Blog: http://willemjiang.blogspot.com (http://willemjiang.blogspot.com/) 
(English)
          http://jnn.iteye.com (http://jnn.javaeye.com/) (Chinese)
Twitter: willemjiang  
Weibo: 姜宁willem





On Tuesday, March 19, 2013 at 4:15 AM, helander wrote:

> In a route I would like to fill the message with a BeanInvocation, the same
> way as when using .bean(....), but I do not want the bean method to be
> called. Is there some easy way to do this (preferably using similar syntax
> as when using .bean() ) ?
>  
> Thanks
> Lars
>  
>  
>  
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/Populate-message-with-BeanInvocation-tp5729373.html
> Sent from the Camel - Users mailing list archive at Nabble.com 
> (http://Nabble.com).



Reply via email to