Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 9E2CD200BBB for ; Wed, 26 Oct 2016 11:23:00 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 9CE55160ACA; Wed, 26 Oct 2016 09:23:00 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id DD9BB160B02 for ; Wed, 26 Oct 2016 11:22:59 +0200 (CEST) Received: (qmail 95565 invoked by uid 500); 26 Oct 2016 09:22:59 -0000 Mailing-List: contact issues-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@camel.apache.org Delivered-To: mailing list issues@camel.apache.org Received: (qmail 95346 invoked by uid 99); 26 Oct 2016 09:22:59 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 26 Oct 2016 09:22:59 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id EE85D2C14F9 for ; Wed, 26 Oct 2016 09:22:58 +0000 (UTC) Date: Wed, 26 Oct 2016 09:22:58 +0000 (UTC) From: "Andrea Cosentino (JIRA)" To: issues@camel.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (CAMEL-9678) camel-undertow - Keep restarting server when add/remove routes MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 26 Oct 2016 09:23:00 -0000 [ https://issues.apache.org/jira/browse/CAMEL-9678?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Andrea Cosentino resolved CAMEL-9678. ------------------------------------- Resolution: Fixed > camel-undertow - Keep restarting server when add/remove routes > -------------------------------------------------------------- > > Key: CAMEL-9678 > URL: https://issues.apache.org/jira/browse/CAMEL-9678 > Project: Camel > Issue Type: Improvement > Components: camel-undertow > Affects Versions: 2.17.0 > Reporter: Claus Ibsen > Assignee: Tomohisa Igarashi > Priority: Minor > Fix For: 2.19.0 > > > When having 4 routes, using rest-dsl, the notice the start server logging on both start/shutdown. > {code} > 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. > {code} > We should make this better. > To reproduce run the example at > https://github.com/camelinaction/camelinaction2/tree/master/chapter10/undertow-rest-xml-json -- This message was sent by Atlassian JIRA (v6.3.4#6332)