Return-Path: X-Original-To: apmail-camel-issues-archive@minotaur.apache.org Delivered-To: apmail-camel-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3159A184B4 for ; Mon, 1 Feb 2016 08:42:40 +0000 (UTC) Received: (qmail 630 invoked by uid 500); 1 Feb 2016 08:42:40 -0000 Delivered-To: apmail-camel-issues-archive@camel.apache.org Received: (qmail 534 invoked by uid 500); 1 Feb 2016 08:42:40 -0000 Mailing-List: contact issues-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 issues@camel.apache.org Received: (qmail 509 invoked by uid 99); 1 Feb 2016 08:42:40 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Feb 2016 08:42:39 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id D98692C1F58 for ; Mon, 1 Feb 2016 08:42:39 +0000 (UTC) Date: Mon, 1 Feb 2016 08:42:39 +0000 (UTC) From: "Claus Ibsen (JIRA)" To: issues@camel.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (CAMEL-9511) Setting Kafka's endpoint configuration by reference overrides everything instead of merging MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CAMEL-9511?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Claus Ibsen updated CAMEL-9511: ------------------------------- Labels: (was: kafka kafka-0.8) > Setting Kafka's endpoint configuration by reference overrides everything instead of merging > ------------------------------------------------------------------------------------------- > > Key: CAMEL-9511 > URL: https://issues.apache.org/jira/browse/CAMEL-9511 > Project: Camel > Issue Type: Improvement > Components: camel-kafka > Reporter: Serge Smertin > Priority: Minor > > If we set configuration for Kafka endpoint as reference, the actual resulting configuration for endpoint is not merged and some query param-set properties are lost. It's easier to use shared configuration in cases us having global bean with zookeeper configuration and broker list. > {code} > @UriParam > private KafkaConfiguration configuration = new KafkaConfiguration(); > ... > @Override > protected KafkaEndpoint createEndpoint(String uri, > String remaining, > Map params) throws Exception { > KafkaEndpoint endpoint = new KafkaEndpoint(uri, this); > String brokers = remaining.split("\\?")[0]; > if (brokers != null) { > endpoint.getConfiguration().setBrokers(brokers); > } > setProperties(endpoint, params); > return endpoint; > } > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)