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 AE52818FEE for ; Mon, 11 Apr 2016 06:02:25 +0000 (UTC) Received: (qmail 4548 invoked by uid 500); 11 Apr 2016 06:02:25 -0000 Delivered-To: apmail-camel-issues-archive@camel.apache.org Received: (qmail 4504 invoked by uid 500); 11 Apr 2016 06:02:25 -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 4488 invoked by uid 99); 11 Apr 2016 06:02:25 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 11 Apr 2016 06:02:25 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 75EA52C1F56 for ; Mon, 11 Apr 2016 06:02:25 +0000 (UTC) Date: Mon, 11 Apr 2016 06:02:25 +0000 (UTC) From: "Claus Ibsen (JIRA)" To: issues@camel.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (CAMEL-9783) Allow ConnectionConfiguration to be be injected to endpoint during connection creation 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-9783?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Claus Ibsen updated CAMEL-9783: ------------------------------- Fix Version/s: (was: Future) 2.18.0 > Allow ConnectionConfiguration to be be injected to endpoint during connection creation > -------------------------------------------------------------------------------------- > > Key: CAMEL-9783 > URL: https://issues.apache.org/jira/browse/CAMEL-9783 > Project: Camel > Issue Type: Improvement > Components: camel-xmpp > Affects Versions: 2.15.1 > Reporter: Allan Cheong Tyng Huei > Priority: Minor > Fix For: 2.18.0 > > Attachments: CAMEL-9783 - Allow ConnectionConfiguration to be be injected to endpoint during connection creation, CAMEL-9783 - For 2.15.1 > > > I was playing around with camel-xmpp and Google Cloud Messaging. I was able to connect to GCM servers using the sample codes in Google's website but was not able to connect when using the camel-xmpp component. > I did some reading and discovered that the ConnectionConfiguration in GCM's sample has some configurations: > config.setSocketFactory(SSLSocketFactory.getDefault()); > config.setSecurityMode(SecurityMode.disabled); > config.setReconnectionAllowed(true); > config.setRosterLoadedAtLogin(false); > config.setSendPresence(false); > However in camel-xmpp the configuration cannot be injected: > if (connection == null) { > if (port > 0) { > if (getServiceName() == null) { > connection = new XMPPTCPConnection(ConnectionConfiguration(host, port)); > } else { > connection = new XMPPTCPConnection(new ConnectionConfiguration(host, port, serviceName)); > } > } else { > connection = new XMPPTCPConnection(host); > } > } > I am thinking if we could make the endpoint to allow Smack's ConnectionConfiguration to be injected before the connection creation. -- This message was sent by Atlassian JIRA (v6.3.4#6332)