camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From alerios <>
Subject Re: Removing an Endpoint from a route
Date Wed, 10 Oct 2012 20:22:56 GMT
Hi Guru, thanks for your reply.

I think using the failover load balancer is not an option for me, since my
Bean will not throw an exception when it fails. I want to disable the
Endpoint when I want, based on health checks, for example.  Also, I would
like to use the weigthed loadbalancer instead, maybe I would have to
implement my own LoadBalancer class, but then I don't see any value in using
Camel at all for my escenario.

I tested the JMX console to stop an endpoint processor, but it happens the
same as when removing the Endpoint from the Registry:

Caused by: java.lang.IllegalStateException: SendProcessor has not been
started: sendTo(Endpoint[bean://tmi3?method=sendResponse])

I guess camel is not designed to remove endpoints at runtime. Maybe I should
try removing, and adding the route again, but I'm afraid that could cause a
race condition because of many threads trying to do the same.

View this message in context:
Sent from the Camel - Users mailing list archive at

View raw message