Details
-
Type:
Improvement
-
Status: Resolved
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 2.15.1
-
Fix Version/s: 2.18.0
-
Component/s: camel-xmpp
-
Labels:None
-
Estimated Complexity:Unknown
Description
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)
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.