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

camel-cloud - Make Exchange available to ServiceFilter

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.9.0
    • 3.10.0
    • camel-core
    • None
    • 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

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment