camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claus Ibsen">
Subject RE: Annotation @Exchange planned in a future release ?
Date Thu, 10 Jul 2008 09:42:30 GMT

I think you can do like this

public Exchange doSomething(Exchange exchange) {
   return exchange;

So the @Exchange annotation is not really neeed IMHO. As its not a common class such as java.lang.String

And I also think you can do return a String etc. instead of Exchange for just the playload
in the message. But I am not 100% sure.

Med venlig hilsen
Claus Ibsen
Skovsgårdsvænget 21
8362 Hørning
Tlf. +45 2962 7576

-----Original Message-----
From: cmoulliard [] 
Sent: 10. juli 2008 11:34
Subject: Annotation @Exchange planned in a future release ?


Is it planned in a future release of Camel to also have the annotation
@Exchange available inside the bean component ?

I ask you that question because when you want inside a bean to perform by
example a in.getOut().setHeader("", ""), you need to have access to the
Exchange object. The annotation allow to receive the @Properties, @Headers
and @Body but no the exchange.


View this message in context:
Sent from the Camel - Users mailing list archive at

View raw message