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 2020/08/23 13:14:13 UTC

[camel] 06/11: camel-cxf - Rest consumer should create server in doStart and not in constructor.

This is an automated email from the ASF dual-hosted git repository.

davsclaus pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git

commit 28e2f0d5e8c10506e8daafd7bda21ce64acd155a
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Sat Aug 22 21:00:31 2020 +0200

    camel-cxf - Rest consumer should create server in doStart and not in constructor.
---
 .../main/java/org/apache/camel/component/cxf/jaxrs/CxfRsConsumer.java    | 1 -
 1 file changed, 1 deletion(-)

diff --git a/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/jaxrs/CxfRsConsumer.java b/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/jaxrs/CxfRsConsumer.java
index e599964..627bb0e 100644
--- a/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/jaxrs/CxfRsConsumer.java
+++ b/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/jaxrs/CxfRsConsumer.java
@@ -37,7 +37,6 @@ public class CxfRsConsumer extends DefaultConsumer implements Suspendable {
 
     public CxfRsConsumer(CxfRsEndpoint endpoint, Processor processor) {
         super(endpoint, processor);
-        server = createServer();
     }
 
     protected Server createServer() {