I've been working on a "dynamic load balancer"[1] in my spare time. The idea
being, at certain periods, stats on the routes are collected via MBeans, and
from that, the weightings are updated for the LB.

I have a method[2] that gets the URI from the processor, but it uses
reflection and is quite easy to break, due to it expecting certain types.

So the question is. Whats the best way to retrieve the URI from a processor?

[1] https://github.com/garethahealy/camel-dynamic-loadbalancer
[2]
https://github.com/garethahealy/camel-dynamic-loadbalancer/blob/master/dynamic-lb-core/src/main/java/com/garethahealy/camel/dynamic/loadbalancer/statistics/mbeans/MBeanRouteStatisticsCollector.java#L215



--
View this message in context: 
http://camel.465427.n5.nabble.com/Get-the-URI-from-a-processor-tp5762557.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to