Details
-
Improvement
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
2.17.0
-
None
-
Unknown
Description
When having 4 routes, using rest-dsl, the notice the start server logging on both start/shutdown.
2016-03-08 09:40:18,659 [rderMain.main()] INFO UndertowRegistry - Adding consumer to consumerRegistry: http://0.0.0.0:8080/orders/%7Bid%7D 2016-03-08 09:40:18,661 [rderMain.main()] INFO UndertowEndpoint - Starting server on port: 8080 2016-03-08 09:40:18,712 [rderMain.main()] INFO xnio - XNIO version 3.3.4.Final 2016-03-08 09:40:18,729 [rderMain.main()] INFO nio - XNIO NIO Implementation Version 3.3.4.Final 2016-03-08 09:40:18,833 [rderMain.main()] INFO DefaultCamelContext - Route: route1 started and consuming from: Endpoint[http://0.0.0.0:8080/orders/%7Bid%7D?httpMethodRestrict=GET] 2016-03-08 09:40:18,835 [rderMain.main()] INFO UndertowRegistry - Adding consumer to consumerRegistry: http://0.0.0.0:8080/orders 2016-03-08 09:40:18,835 [rderMain.main()] INFO UndertowEndpoint - Starting server on port: 8080 2016-03-08 09:40:18,842 [rderMain.main()] INFO DefaultCamelContext - Route: route2 started and consuming from: Endpoint[http://0.0.0.0:8080/orders?httpMethodRestrict=POST] 2016-03-08 09:40:18,844 [rderMain.main()] INFO UndertowRegistry - Adding consumer to consumerRegistry: http://0.0.0.0:8080/orders 2016-03-08 09:40:18,844 [rderMain.main()] INFO UndertowEndpoint - Starting server on port: 8080 2016-03-08 09:40:18,848 [rderMain.main()] INFO DefaultCamelContext - Route: route3 started and consuming from: Endpoint[http://0.0.0.0:8080/orders?httpMethodRestrict=PUT] 2016-03-08 09:40:18,849 [rderMain.main()] INFO UndertowRegistry - Adding consumer to consumerRegistry: http://0.0.0.0:8080/orders/%7Bid%7D 2016-03-08 09:40:18,849 [rderMain.main()] INFO UndertowEndpoint - Starting server on port: 8080 2016-03-08 09:40:18,854 [rderMain.main()] INFO DefaultCamelContext - Route: route4 started and consuming from: Endpoint[http://0.0.0.0:8080/orders/%7Bid%7D?httpMethodRestrict=DELETE] 2016-03-08 09:40:18,854 [rderMain.main()] INFO DefaultCamelContext - Total 4 routes, of which 4 are started. 2016-03-08 09:40:18,855 [rderMain.main()] INFO DefaultCamelContext - Apache Camel 2.17-SNAPSHOT (CamelContext: camel-1) started in 1.236 seconds ^C2016-03-08 09:40:58,098 [Thread-1 ] INFO MainSupport$HangupInterceptor - Received hang up - stopping the main instance. 2016-03-08 09:40:58,099 [Thread-1 ] INFO DefaultCamelContext - Apache Camel 2.17-SNAPSHOT (CamelContext: camel-1) is shutting down 2016-03-08 09:40:58,100 [Thread-1 ] INFO DefaultShutdownStrategy - Starting to graceful shutdown 4 routes (timeout 300 seconds) 2016-03-08 09:40:58,105 [ - ShutdownTask] INFO UndertowEndpoint - Starting server on port: 8080 2016-03-08 09:40:58,109 [ - ShutdownTask] INFO DefaultShutdownStrategy - Route: route4 shutdown complete, was consuming from: Endpoint[rest://delete:/orders:%7Bid%7D?componentName=undertow&routeId=route4] 2016-03-08 09:40:58,109 [ - ShutdownTask] INFO UndertowEndpoint - Starting server on port: 8080 2016-03-08 09:40:58,113 [ - ShutdownTask] INFO DefaultShutdownStrategy - Route: route3 shutdown complete, was consuming from: Endpoint[rest://put:/orders?componentName=undertow&inType=camelinaction.Order&routeId=route3] 2016-03-08 09:40:58,113 [ - ShutdownTask] INFO UndertowEndpoint - Starting server on port: 8080 2016-03-08 09:40:58,116 [ - ShutdownTask] INFO DefaultShutdownStrategy - Route: route2 shutdown complete, was consuming from: Endpoint[rest://post:/orders?componentName=undertow&inType=camelinaction.Order&routeId=route2] 2016-03-08 09:40:58,117 [ - ShutdownTask] INFO DefaultShutdownStrategy - Route: route1 shutdown complete, was consuming from: Endpoint[rest://get:/orders:%7Bid%7D?componentName=undertow&outType=camelinaction.Order&routeId=route1] 2016-03-08 09:40:58,117 [Thread-1 ] INFO DefaultShutdownStrategy - Graceful shutdown of 4 routes completed in 0 seconds 2016-03-08 09:40:58,123 [Thread-1 ] INFO MainLifecycleStrategy - CamelContext: camel-1 has been shutdown, triggering shutdown of the JVM.
We should make this better.
To reproduce run the example at
https://github.com/camelinaction/camelinaction2/tree/master/chapter10/undertow-rest-xml-json
Attachments
Issue Links
- links to