[ https://issues.apache.org/jira/browse/CAMEL-3388?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Claus Ibsen resolved CAMEL-3388. -------------------------------- Resolution: Fixed trunk: 1042310. @OutHeaders is now only bound if MEP is out capable. If you send an InOnly then it will be null. The @Body and other parameters is now not affected. > @OutHeaders in bean binding issue with InOnly MEP > ------------------------------------------------- > > Key: CAMEL-3388 > URL: https://issues.apache.org/jira/browse/CAMEL-3388 > Project: Camel > Issue Type: Bug > Components: camel-core > Affects Versions: 2.5.0 > Reporter: Aaron Mulder > Assignee: Claus Ibsen > Fix For: 2.6.0 > > > When you invoke a bean with a method signature like this in Camel 2.5.0/HEAD, > the in and out message both are null (the "Hello!" value just disappears): > {code:java} > public String doTest(@Body Object body, @Headers Map headers, @OutHeaders > Map outHeaders) { > return "Hello!"; > } > {code} > The same thing without the headers works OK: > {code:java} > public String doTest(@Body Object body) { > return "Hello!"; > } > {code} > See > camel-core/src/test/java/org/apache/camel/component/bean/BeanWithHeadersAndBodyInject3Test.java -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.