Return-Path: X-Original-To: apmail-camel-dev-archive@www.apache.org Delivered-To: apmail-camel-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 7E20965FF for ; Sat, 6 Aug 2011 09:52:08 +0000 (UTC) Received: (qmail 6703 invoked by uid 500); 6 Aug 2011 09:52:05 -0000 Delivered-To: apmail-camel-dev-archive@camel.apache.org Received: (qmail 6490 invoked by uid 500); 6 Aug 2011 09:51:58 -0000 Mailing-List: contact dev-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 dev@camel.apache.org Received: (qmail 6430 invoked by uid 99); 6 Aug 2011 09:51:52 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 06 Aug 2011 09:51:52 +0000 X-ASF-Spam-Status: No, hits=-2000.7 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 06 Aug 2011 09:51:48 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 2084BAEC09 for ; Sat, 6 Aug 2011 09:51:27 +0000 (UTC) Date: Sat, 6 Aug 2011 09:51:27 +0000 (UTC) From: "Claus Ibsen (JIRA)" To: dev@camel.apache.org Message-ID: <661157272.13751.1312624287129.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1554009057.21438.1304510463614.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (CAMEL-3938) Re-add support for ComsumerType.Simple/JMS SimpleMessageListenerContainer MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/CAMEL-3938?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13080387#comment-13080387 ] Claus Ibsen commented on CAMEL-3938: ------------------------------------ We need unit tests as well. Do you care to work on that too? > Re-add support for ComsumerType.Simple/JMS SimpleMessageListenerContainer > ------------------------------------------------------------------------- > > Key: CAMEL-3938 > URL: https://issues.apache.org/jira/browse/CAMEL-3938 > Project: Camel > Issue Type: Improvement > Components: camel-jms > Affects Versions: 2.7.0, 2.7.3, 2.8.0 > Reporter: Joshua Watkins > Attachments: simpleMessageListenerContainerAddition > > > A while ago there was a discussion topic that the > SimpleMessageListenerContainer/ConsumerType.Simple was removed from > camel-jms as it was deprecated. However from looking at the latest Spring > docs ( > http://static.springsource.org/spring/docs/3.1.0.M1/javadoc-api/org/springf > ramework/jms/listener/SimpleMessageListenerContainer.html ) it is alive > and kicking. > Is there another reason that this feature was removed? > The reason I am so keen on the SimpleMessageListenerContainer is that the > DefaultMessageListenerContainer does not allow you to constrain the number > of threads used in a useful way. If you give it a task executor with a > maximum 5 threads and want to listen on 10 routes, only 5 of those routes > would be consumed from. There is even a note about this fact in the docs ( > http://static.springsource.org/spring/docs/3.1.0.M1/javadoc-api/org/springf > ramework/jms/listener/DefaultMessageListenerContainer.html#setTaskExecutor( > java.util.concurrent.Executor) ). This makes the > SimpleMessageListenerContainer invaluable for scaling out an application > using camel-jms. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira