camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <claus.ib...@gmail.com>
Subject Re: Binding IN and OUT message using annotation
Date Tue, 19 Mar 2013 13:28:24 GMT
On Tue, Mar 19, 2013 at 2:02 PM, Gert Villemos <gvillemos@gmail.com> wrote:
> In an inOut route I would like to bind the IN and the OUT message to method
> parameters using annotations. Something like;
>
> public void foo(@body String inMessage, @X String outMessage)
>
> I cant find this in the annottation description.
>

The out message is what you return from the method. So change the void
to String.


>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/Binding-IN-and-OUT-message-using-annotation-tp5729418.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
FuseSource is now part of Red Hat
Email: cibsen@redhat.com
Web: http://fusesource.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen

Mime
View raw message