You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (Jira)" <ji...@apache.org> on 2021/04/19 08:08:00 UTC

[jira] [Resolved] (CAMEL-16449) camel-cloud - Make Exchange available to ServiceFilter

     [ https://issues.apache.org/jira/browse/CAMEL-16449?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen resolved CAMEL-16449.
---------------------------------
    Resolution: Fixed

> camel-cloud - Make Exchange available to ServiceFilter
> ------------------------------------------------------
>
>                 Key: CAMEL-16449
>                 URL: https://issues.apache.org/jira/browse/CAMEL-16449
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-core
>    Affects Versions: 3.9.0
>            Reporter: Dietrich Schulten
>            Priority: Major
>             Fix For: 3.10.0
>
>
> 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.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)