Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
3.9.0
-
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
Attachments
Issue Links
- relates to
-
CAMEL-16526 Unreachable consul leads to NPE in CombinedServiceDiscovery
- Resolved
- links to