Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-6335

Explicitly set HTTPConduit on client inbound message

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.1, 3.0.5
    • Component/s: JAX-WS Runtime, Transports
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      On client side, an instance of HTTPConduit is saved in the Message when the ConduitSelector is used on client (in particular, the prepare(Message message) method is called on the selector). That applies to the oubound message only, though. The inbound message is not explicitly linked to the conduit, untill something actually needs it (lazy approach), for instance the PolicyInVerificationInterceptor.
      This is a problem as the selector clears the message context cache after having selected the conduit, which is a performance issue as we end up computing the cache twice for response messages. The conduit should be selected (actually copied from the outbound message) soon after having created the response inbound Message, to prevent double cache computing.

        Attachments

          Activity

            People

            • Assignee:
              asoldano Alessio Soldano
              Reporter:
              asoldano Alessio Soldano
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: