camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sloanecourt <anthony.d...@fundtech-fm.com>
Subject Re: Programmatic CXF Endpoint
Date Mon, 03 Aug 2015 16:02:15 GMT
I found that the 3 lines of code following "TLS Parameters" resolved the
SSL/TLS issue.

  @Override
  public void configureClient(Client client) {

        // Policy
        HTTPConduit conduit = (HTTPConduit) client.getConduit();
        HTTPClientPolicy policy = conduit.getClient();
        if (policy == null) {
          policy = new HTTPClientPolicy();
          conduit.setClient(policy);
        }

	// Policy
        policy.setConnectionTimeout(10000L);
        policy.setReceiveTimeout(10000L);

        // TLS Parameters
        TLSClientParameters tlsClientParameters = new TLSClientParameters();
       
tlsClientParameters.setUseHttpsURLConnectionDefaultSslSocketFactory(true);
        conduit.setTlsClientParameters(tlsClientParameters);

      }
    }

  }

Regards
Anthony Dodd
Fundtech Financial Messaging




--
View this message in context: http://camel.465427.n5.nabble.com/Programmatic-CXF-Endpoint-tp5756368p5770254.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message