You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2015/07/13 14:37:58 UTC
[07/10] camel git commit: CAMEL-8956: Add failsafe until we have
better namespace parsing with factory beans.
CAMEL-8956: Add failsafe until we have better namespace parsing with factory beans.
Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/39c51705
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/39c51705
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/39c51705
Branch: refs/heads/master
Commit: 39c5170589d1d15ccf6ca975f7cdbd046b54db87
Parents: 80dbbc4
Author: Claus Ibsen <da...@apache.org>
Authored: Mon Jul 13 12:10:28 2015 +0200
Committer: Claus Ibsen <da...@apache.org>
Committed: Mon Jul 13 12:10:28 2015 +0200
----------------------------------------------------------------------
.../main/java/org/apache/camel/component/cxf/CxfProducer.java | 4 ++++
1 file changed, 4 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/camel/blob/39c51705/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/CxfProducer.java
----------------------------------------------------------------------
diff --git a/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/CxfProducer.java b/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/CxfProducer.java
index 0aa4fa9..f778e5f 100644
--- a/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/CxfProducer.java
+++ b/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/CxfProducer.java
@@ -34,6 +34,7 @@ import org.apache.camel.RuntimeCamelException;
import org.apache.camel.component.cxf.common.message.CxfConstants;
import org.apache.camel.impl.DefaultProducer;
import org.apache.camel.util.ObjectHelper;
+import org.apache.camel.util.ServiceHelper;
import org.apache.cxf.Bus;
import org.apache.cxf.binding.soap.model.SoapHeaderInfo;
import org.apache.cxf.endpoint.Client;
@@ -72,6 +73,9 @@ public class CxfProducer extends DefaultProducer implements AsyncProcessor {
@Override
protected void doStart() throws Exception {
+ // failsafe as cxf may not ensure the endpoint is started (CAMEL-8956)
+ ServiceHelper.startService(endpoint);
+
if (client == null) {
client = endpoint.createClient();
}