Author: ningjiang Date: Wed Nov 21 14:30:34 2012 New Revision: 1412126 URL: http://svn.apache.org/viewvc?rev=1412126&view=rev Log: CAMEL-5810 Fixed the issue of CXF + Code first + No recipient list + doCatch = route returns null
Merged revisions 1412100 via svnmerge from https://svn.apache.org/repos/asf/camel/trunk ........ r1412100 | ningjiang | 2012-11-21 21:54:02 +0800 (Wed, 21 Nov 2012) | 1 line CAMEL-5810 Fixed the issue of CXF + Code first + No recipient list + doCatch = route returns null ........ Added: camel/branches/camel-2.10.x/components/camel-cxf/src/test/java/org/apache/camel/component/cxf/CxfConsumerWithTryCatchTest.java - copied unchanged from r1412100, camel/trunk/components/camel-cxf/src/test/java/org/apache/camel/component/cxf/CxfConsumerWithTryCatchTest.java Modified: camel/branches/camel-2.10.x/ (props changed) camel/branches/camel-2.10.x/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/DefaultCxfBinding.java Propchange: camel/branches/camel-2.10.x/ ------------------------------------------------------------------------------ Merged /camel/trunk:r1412100 Propchange: camel/branches/camel-2.10.x/ ------------------------------------------------------------------------------ Binary property 'svnmerge-integrated' - no diff available. Modified: camel/branches/camel-2.10.x/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/DefaultCxfBinding.java URL: http://svn.apache.org/viewvc/camel/branches/camel-2.10.x/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/DefaultCxfBinding.java?rev=1412126&r1=1412125&r2=1412126&view=diff ============================================================================== --- camel/branches/camel-2.10.x/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/DefaultCxfBinding.java (original) +++ camel/branches/camel-2.10.x/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/DefaultCxfBinding.java Wed Nov 21 14:30:34 2012 @@ -282,9 +282,16 @@ public class DefaultCxfBinding implement org.apache.camel.Message response; if (camelExchange.getPattern().isOutCapable()) { - response = camelExchange.getOut(); + if (camelExchange.hasOut()) { + response = camelExchange.getOut(); + LOG.debug("Get the response from the out message"); + } else { // Take the in message as a fall back + response = camelExchange.getIn(); + LOG.debug("Get the response from the in message as a fallback"); + } } else { response = camelExchange.getIn(); + LOG.debug("Get the response from the in message"); } // propagate response context
