Return-Path: Delivered-To: apmail-camel-dev-archive@www.apache.org Received: (qmail 80189 invoked from network); 21 Dec 2009 01:23:21 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 21 Dec 2009 01:23:21 -0000 Received: (qmail 50697 invoked by uid 500); 21 Dec 2009 01:23:21 -0000 Delivered-To: apmail-camel-dev-archive@camel.apache.org Received: (qmail 50648 invoked by uid 500); 21 Dec 2009 01:23:21 -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 50638 invoked by uid 500); 21 Dec 2009 01:23:21 -0000 Delivered-To: apmail-activemq-camel-dev@activemq.apache.org Received: (qmail 50635 invoked by uid 99); 21 Dec 2009 01:23:21 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 21 Dec 2009 01:23:21 +0000 X-ASF-Spam-Status: No, hits=-10.5 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI 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; Mon, 21 Dec 2009 01:23:14 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 73711234C1E9 for ; Sun, 20 Dec 2009 17:22:54 -0800 (PST) Message-ID: <1667261797.1261358574470.JavaMail.jira@brutus> Date: Sun, 20 Dec 2009 17:22:54 -0800 (PST) From: "Giampaolo Tranchida (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 [ https://issues.apache.org/activemq/browse/CAMEL-2305?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=56555#action_56555 ] Giampaolo Tranchida commented on CAMEL-2305: -------------------------------------------- I see same problem with jms ou xa transaction. Setting the prefetch to 0 seems to solve the problem. Everything work fine on 5.2.0 with any prefetch size. > 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.