Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Not A Problem
-
3.1.0, 3.2.0
-
None
-
None
-
java version "1.8.0_181"
Java(TM) SE Runtime Environment (build 1.8.0_181-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.181-b13, mixed mode)
-
Unknown
Description
Hello,
I am defining a REST route with route identifier "mngt-endpoint-stats"
restConfiguration().component("undertow") .bindingMode(RestBindingMode.json) .contextPath("/").host("0.0.0.0").port(9090) .apiContextPath("/api-doc") .apiContextRouteId("api-doc-endpoint") .apiProperty("api.title", "Producer API") .apiProperty("api.version", "1.0.0") .apiProperty("cors", "true"); rest("/mngt").id("mngt-endpoint") .consumes("application/json").produces("application/json") .get("/stats").id("mngt-endpoint-stats").description("Stats Apache Camel") .to(StatsRouteBuilder.DIRECT_STATS)
I want to suspend/resume the route dynamically due schedule maintenance periods or return 503 along that time.
I am trying to use the controlbus to suspend the route but after call it the endpoint is still available and working.
.toD("controlbus:route?routeId=${exchangeProperty.routesIds[${exchangeProperty.CamelLoopIndex}]}&action=suspend");
Attachments
Issue Links
- relates to
-
CAMEL-14954 camel-undertow - Implement doSuspend/doResume to support suspension
- Resolved