Return-Path: X-Original-To: apmail-camel-issues-archive@minotaur.apache.org Delivered-To: apmail-camel-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C57961816E for ; Fri, 7 Aug 2015 15:46:01 +0000 (UTC) Received: (qmail 60305 invoked by uid 500); 7 Aug 2015 15:45:45 -0000 Delivered-To: apmail-camel-issues-archive@camel.apache.org Received: (qmail 60264 invoked by uid 500); 7 Aug 2015 15:45:45 -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 60254 invoked by uid 99); 7 Aug 2015 15:45:45 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 07 Aug 2015 15:45:45 +0000 Date: Fri, 7 Aug 2015 15:45:45 +0000 (UTC) From: "Claus Ibsen (JIRA)" To: issues@camel.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CAMEL-7585) Cyclic behaviour in shutdown of temporary queues used in a proxy MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CAMEL-7585?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14661999#comment-14661999 ] Claus Ibsen commented on CAMEL-7585: ------------------------------------ Its the producer that is responsible for the temporary queue manager and therefore its count down / stopped when the producer stops. > Cyclic behaviour in shutdown of temporary queues used in a proxy > ---------------------------------------------------------------- > > Key: CAMEL-7585 > URL: https://issues.apache.org/jira/browse/CAMEL-7585 > Project: Camel > Issue Type: Bug > Components: camel-jms > Affects Versions: 2.13.0, 2.13.2 > Environment: Windows 7 64 > Karaf 2.3.4 > ActiveMQ 5.9.0 / 5.10.0 > Spring 3.2.4 > Reporter: Maurice Betzel > Priority: Minor > Fix For: Future > > > On bundle shutdown the DMLC for the temporary queue does not get discarded. When stop() is called on the request reply JmsEndpoint the runningMessageListeners.get() count returns 1 preventing to call stop on ServiceSupport. Then inside the DMLC in refreshConnectionUntilSuccessful() isRunning() gets called resulting in a JmsEndpoint isRunning() returning true from ServiceSupport. > As a quick and dirty solution one can do this on bundle shutdown: > JmsEndpoint jmsEndpoint = camelContext.getEndpoint("amq:queue:Endpoint", JmsEndpoint.class); > jmsEndpoint.onListenerContainerStopped(null); > This will decrement the runningMessageListeners (which should always be one for temp queues because a singlethreadexecuter is used) to zero allowing stop() to propagate to ServiceSupport. -- This message was sent by Atlassian JIRA (v6.3.4#6332)