Return-Path: X-Original-To: apmail-camel-users-archive@www.apache.org Delivered-To: apmail-camel-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 51520107A3 for ; Fri, 30 May 2014 20:10:13 +0000 (UTC) Received: (qmail 92732 invoked by uid 500); 30 May 2014 20:10:13 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 92682 invoked by uid 500); 30 May 2014 20:10:13 -0000 Mailing-List: contact users-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@camel.apache.org Delivered-To: mailing list users@camel.apache.org Received: (qmail 92674 invoked by uid 99); 30 May 2014 20:10:12 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 30 May 2014 20:10:12 +0000 X-ASF-Spam-Status: No, hits=2.5 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,SPF_SOFTFAIL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: softfail (nike.apache.org: transitioning domain of rkjoshi2@gmail.com does not designate 216.139.236.26 as permitted sender) Received: from [216.139.236.26] (HELO sam.nabble.com) (216.139.236.26) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 30 May 2014 20:10:09 +0000 Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1WqT7Z-00048A-J0 for users@camel.apache.org; Fri, 30 May 2014 13:09:45 -0700 Date: Fri, 30 May 2014 13:09:45 -0700 (PDT) From: rkjoshi2 To: users@camel.apache.org Message-ID: <1401480585580-5751762.post@n5.nabble.com> Subject: Still waiting for shutdown of 1 message listener invokers MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org I have an apache-camel JMS route. form("jms:queue:sourceQueue").to("messageProcessor") My requirement is to stop route on 3 message processing failures. In messageProcessor class, in catch block I am checking for error count and as soon as it reaches 3, I am inovking camelContext.stopRoute(routeID, 3, TimeUnit.SECONDS); My route do not stop and spring's DefaultMessageListenerContainer writes following line in log -Shutting down JMS listener container -Waiting for shutdown of message listener invokers -Still waiting for shutdown of 1 message listener invokers I am trying to figure out, what is holding DMLC from stopping? What camel attribute I am missing? If I use asyncStopListener=true then camle route stops but a thread keeps waiting in background to stop listener. Thank you for any pointers - -- View this message in context: http://camel.465427.n5.nabble.com/Still-waiting-for-shutdown-of-1-message-listener-invokers-tp5751762.html Sent from the Camel - Users mailing list archive at Nabble.com.