Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-15794

CxfRsEndpoint recreates SSL context for each message

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.6.0
    • 3.7.0
    • camel-cxfrs
    • Unknown

    Description

      CxfRsEndpoint contains this code in `invoke*Client`:

       WebClient client = cfb.createWebClient();
      ((CxfRsEndpoint) getEndpoint()).getChainedCxfRsEndpointConfigurer().configureClient(client);

      This means, a new client is created on every request (ok, because possibly not thread-safe) and then configured. The configuration step includes an `AbstractSslEndpointConfigurer` which also recreates the SSLSocketFactory on every call, and that includes re-opening and re-reading configured key and trust stores.

      Doing this on every request obviously degrades performance significantly.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              jensgr@gmx.net Jens Kleine-Herzbruch
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: