Hi

Then does it mean that camel-restlet Producer should be changed as well? I
also looked into another two brand new components as well:

camel-mongodb
camel-hbase

which do behave like camel-restlet as well, that's they don't take the
exchange pattern into the account.

In this context what I also think is an API flaw is that the following works
perfectly:

 Exchange exchange = new DefaultExchange(new DefaultCamelContext());
 exchange.getOut().setBody("Camel");

Maybe I'm missing something here but to my understanding as the default
exchange pattern is InOnly one should not be able to set the body of the OUT
message and the second line should blow up with some Not_Allowed unchecked
exception.

All in one I'm pretty confused with all this and would appreciate any
clarifications.

Babak


--
View this message in context: 
http://camel.465427.n5.nabble.com/About-what-to-do-with-the-Response-retrieved-through-a-Producer-when-the-Exchange-is-NOT-out-capable-tp5713946p5714007.html
Sent from the Camel Development mailing list archive at Nabble.com.

Reply via email to