On Tue, Jun 5, 2012 at 11:38 AM, Babak Vahdat <babak.vah...@swissonline.ch> wrote: > 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. >
See this FAQ http://camel.apache.org/using-getin-or-getout-methods-on-exchange.html > 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. -- Claus Ibsen ----------------- FuseSource Email: cib...@fusesource.com Web: http://fusesource.com Twitter: davsclaus, fusenews Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen