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

camel-cloud - Make Exchange available to ServiceFilter

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.9.0
    • Fix Version/s: 3.10.0
    • Component/s: camel-core
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      It would be useful to make the current exchange available to custom org.apache.camel.cloud.ServiceFilter implementations.

      The service filter could use data from the current exchange to decide which service instance is capable of handling the request.

      It would probably also require to do something about ServiceLoadBalancer.process because that is where the exchange would have to be passed into the ServiceFilter.

      Workaround: use a ThreadLocal to store the required data and access them from a custom service filter.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                dschulten Dietrich Schulten
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: