Return-Path: X-Original-To: apmail-camel-commits-archive@www.apache.org Delivered-To: apmail-camel-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B880C181EF for ; Mon, 13 Jul 2015 12:37:52 +0000 (UTC) Received: (qmail 27477 invoked by uid 500); 13 Jul 2015 12:37:52 -0000 Delivered-To: apmail-camel-commits-archive@camel.apache.org Received: (qmail 27310 invoked by uid 500); 13 Jul 2015 12:37:52 -0000 Mailing-List: contact commits-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@camel.apache.org Delivered-To: mailing list commits@camel.apache.org Received: (qmail 27039 invoked by uid 99); 13 Jul 2015 12:37:52 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 13 Jul 2015 12:37:52 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 20571E04B3; Mon, 13 Jul 2015 12:37:52 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: davsclaus@apache.org To: commits@camel.apache.org Date: Mon, 13 Jul 2015 12:37:58 -0000 Message-Id: <4ecd247783074a4eae19947420b4c30f@git.apache.org> In-Reply-To: <61e699037eeb43fcb8f7b09065ab8b4a@git.apache.org> References: <61e699037eeb43fcb8f7b09065ab8b4a@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [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 Authored: Mon Jul 13 12:10:28 2015 +0200 Committer: Claus Ibsen 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(); }