You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (JIRA)" <ji...@apache.org> on 2016/04/10 08:13:25 UTC

[jira] [Updated] (CAMEL-9783) Allow ConnectionConfiguration to be be injected to endpoint during connection creation

     [ 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: Future

> 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: Future
>
>
> 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)