Hi, I don't think you intended on using the in-out message pattern, it looks more like a in-only pattern. Therefore make sure you only use the exchange.getIn for all your retrieving and setting of headers.
regards, Achim 2015-08-18 12:20 GMT+02:00 catshout <[email protected]>: > Dear all, > > I've defined a route as following (snippet) .. > > > > In the bean HeaderWriter are defined two methods like .. > > > > The Configuration bean is defined as .. > > > > The log says when the route has been executed .. > > 2015-08-18 12:07:06,718 | INFO | me/cas/camel/OUT | EventPublisher > | 251 - SIBEventProcessor - 1.0.0 | setId1 value: > bean:configuration?method=getId() > 2015-08-18 12:07:06,718 | INFO | me/cas/camel/OUT | EventPublisher > | 251 - SIBEventProcessor - 1.0.0 | setId2 value: SIB.0001 > 2 > > The getId() returns the value "SIB.0001". The method "setId1" doesn't > resolve the "bean:configuration?method=getId()" expression, the method > "setId2" does. > > Does anyone has an explanation for this behaviour? Did I miss anything? > > Thanks in advance for any hints. > - Gerald > > > > -- > View this message in context: > http://servicemix.396122.n5.nabble.com/bean-method-return-doesn-t-work-with-a-single-parameter-tp5722885.html > Sent from the ServiceMix - User mailing list archive at Nabble.com. > -- Apache Member Apache Karaf <http://karaf.apache.org/> Committer & PMC OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer & Project Lead blog <http://notizblog.nierbeck.de/> Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS> Software Architect / Project Manager / Scrum Master
