Author: davsclaus Date: Mon Feb 21 14:55:20 2011 New Revision: 1072998 URL: http://svn.apache.org/viewvc?rev=1072998&view=rev Log: CAMEL-3694: camel-cxf will lazy initialize CXF Continuation, so its only used if enabled. Thanks to Arnoud for the patch.
Modified: camel/trunk/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/CxfConsumer.java Modified: camel/trunk/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/CxfConsumer.java URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/CxfConsumer.java?rev=1072998&r1=1072997&r2=1072998&view=diff ============================================================================== --- camel/trunk/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/CxfConsumer.java (original) +++ camel/trunk/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/CxfConsumer.java Mon Feb 21 14:55:20 2011 @@ -66,9 +66,9 @@ public class CxfConsumer extends Default if (LOG.isTraceEnabled()) { LOG.trace("Received CXF Request: " + cxfExchange); } - Continuation continuation = getContinuation(cxfExchange); + Continuation continuation; // Only calling the continuation API for CXF 2.3.x - if (continuation != null && !endpoint.isSynchronous() && Version.getCurrentVersion().startsWith("2.3")) { + if (!endpoint.isSynchronous() && (continuation = getContinuation(cxfExchange)) != null && Version.getCurrentVersion().startsWith("2.3")) { if (LOG.isTraceEnabled()) { LOG.trace("Calling the Camel async processors."); }