Return-Path: Delivered-To: apmail-camel-dev-archive@www.apache.org Received: (qmail 70747 invoked from network); 29 Dec 2009 19:37:04 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 29 Dec 2009 19:37:04 -0000 Received: (qmail 974 invoked by uid 500); 29 Dec 2009 19:37:04 -0000 Delivered-To: apmail-camel-dev-archive@camel.apache.org Received: (qmail 920 invoked by uid 500); 29 Dec 2009 19:37:04 -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 910 invoked by uid 500); 29 Dec 2009 19:37:04 -0000 Delivered-To: apmail-activemq-camel-dev@activemq.apache.org Received: (qmail 907 invoked by uid 99); 29 Dec 2009 19:37:04 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 29 Dec 2009 19:37:04 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 29 Dec 2009 19:37:02 +0000 Received: from brutus.apache.org (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id B4D45234C1E9 for ; Tue, 29 Dec 2009 11:36:41 -0800 (PST) Message-ID: <1462215792.1262115401739.JavaMail.jira@brutus.apache.org> Date: Tue, 29 Dec 2009 19:36:41 +0000 (UTC) From: "Dragisa Krsmanovic (JIRA)" To: camel-dev@activemq.apache.org Subject: [jira] Commented: (CAMEL-2305) Polling consumer does not work well with transacted ActiveMQ 5.3.0 In-Reply-To: <1647631169.1261162793888.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: ae95407df07c98740808b2ef9da0087c X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/activemq/browse/CAMEL-2305?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=56689#action_56689 ] Dragisa Krsmanovic commented on CAMEL-2305: ------------------------------------------- Setting prefetch to 0 is not ideal because it can impact performance. Allowing to set consumer prefetch size as an option in AMQ component url would, at least, allow us to still use prefetch in other routes that do not use polling consumer. > Polling consumer does not work well with transacted ActiveMQ 5.3.0 > ------------------------------------------------------------------ > > Key: CAMEL-2305 > URL: https://issues.apache.org/activemq/browse/CAMEL-2305 > Project: Apache Camel > Issue Type: Bug > Components: camel-jms > Affects Versions: 2.0.0, 2.1.0, 2.2.0 > Reporter: Dragisa Krsmanovic > Attachments: JmsPollingConsumerTest.patch > > > A bean in a activemq route is consuming messages from another activemq queue. Instead of reading all queued messages, it always gets just the first message in the queue. > {code:java} > while ((exchange = consumer.receive("activemq:queue", 2000l)) != null) { > ... > } > {code} > * This did not happen with ActiveMQ 5.2.0 > * This does not happen if Spring transaction support is not set for activemq component. > * This does not happen if consumer bean is invoked from direct: route. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.