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 2AE2FEB18 for ; Mon, 7 Jan 2013 12:22:14 +0000 (UTC) Received: (qmail 10421 invoked by uid 500); 7 Jan 2013 12:22:13 -0000 Delivered-To: apmail-camel-issues-archive@camel.apache.org Received: (qmail 9826 invoked by uid 500); 7 Jan 2013 12:22:12 -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 9796 invoked by uid 99); 7 Jan 2013 12:22:12 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 07 Jan 2013 12:22:12 +0000 Date: Mon, 7 Jan 2013 12:22:12 +0000 (UTC) From: "Claus Ibsen (JIRA)" To: issues@camel.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (CAMEL-5870) camel-jms: Avoid DMLC.stop(), as it's buggy under certain conditions 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-5870?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Claus Ibsen resolved CAMEL-5870. -------------------------------- Resolution: Won't Fix This bug is fixed in Spring Framework. People can/should use start|stop with JMS routes if they want to stop/destroy all the JMS resources. The bug in Spring is only affected when using suspend/resume, and using Spring 3.1.3 or older. > camel-jms: Avoid DMLC.stop(), as it's buggy under certain conditions > -------------------------------------------------------------------- > > Key: CAMEL-5870 > URL: https://issues.apache.org/jira/browse/CAMEL-5870 > Project: Camel > Issue Type: Task > Affects Versions: 2.10.3 > Reporter: Raul Kripalani > Assignee: Raul Kripalani > Fix For: 2.9.6, 2.10.4, 2.11.0 > > > Spring's DefaultMessageListenerContainer leaks MessageConsumers, Sessions and Connections when maxMessagesPerTask is greater than -1 (i.e. you have defined how many messages you'll process in each task). > Here is the bug report: https://jira.springsource.org/browse/SPR-10092. > This happens if you first call DLMC.stop(), followed by DLMC.destroy(). The stop() method pauses the consuming tasks, and the destroy() method "forgets" to free the underlying resources. > We use DLMC.stop() when suspending the JmsConsumer. > To circumvent this issue, let's destroy the DLMC directly even when suspending the consumer. It's the safest option for now. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira