[
https://issues.apache.org/jira/browse/CAMEL-16449?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17314884#comment-17314884
]
Claus Ibsen commented on CAMEL-16449:
-------------------------------------
You are welcome to dive into the code to see what this takes, there is a few
spots where the code must be adjusted to pass in the exchange object.
> 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
>
> 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)