Return-Path: Delivered-To: apmail-activemq-dev-archive@www.apache.org Received: (qmail 3236 invoked from network); 20 Nov 2008 23:49:56 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 20 Nov 2008 23:49:56 -0000 Received: (qmail 44704 invoked by uid 500); 20 Nov 2008 23:50:05 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 44674 invoked by uid 500); 20 Nov 2008 23:50:04 -0000 Mailing-List: contact dev-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@activemq.apache.org Delivered-To: mailing list dev@activemq.apache.org Received: (qmail 44663 invoked by uid 99); 20 Nov 2008 23:50:04 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 20 Nov 2008 15:50:04 -0800 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; Thu, 20 Nov 2008 23:48:50 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 7F4A8234C29A for ; Thu, 20 Nov 2008 15:49:05 -0800 (PST) Message-ID: <1779218609.1227224945519.JavaMail.jira@brutus> Date: Thu, 20 Nov 2008 15:49:05 -0800 (PST) From: "Sharath Komarla (JIRA)" To: dev@activemq.apache.org Subject: [jira] Commented: (AMQ-1126) The Resource Adapter ignores the JMSXGroupID when dispatching to MDBs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/activemq/browse/AMQ-1126?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=47540#action_47540 ] Sharath Komarla commented on AMQ-1126: -------------------------------------- Man.. I'm so glad I stumbled on this issue. I've been pulling my hair out over this. I use JBoss 4.2.2 with the 5.1.0 activemq rar and I see that the RA completely ignores the group id. we are using spring's jms:listener-container and not MDB's, but I see the exact same behavior. I even have a unit test that exhibits this behavior using an vm://localhost broker on 5.1.0 and RC3 of 5.2.0 Based on the last comment from John, I agree that the MDB container/spring container is real endoint of the queue and I don't care which MDB instance the message is delagated to, but the container should respect the grouping! > The Resource Adapter ignores the JMSXGroupID when dispatching to MDBs > --------------------------------------------------------------------- > > Key: AMQ-1126 > URL: https://issues.apache.org/activemq/browse/AMQ-1126 > Project: ActiveMQ > Issue Type: Bug > Components: JCA Container > Affects Versions: 4.0.1 > Environment: Java 1.4.2_08 > JBoss 4.0.4 > ActiveMQ 4.0.1 > Reporter: John Robinson > Fix For: 5.3.0 > > > Integrate AMQ into JBoss using the data source, and resource adapter. Create an outbound queue and an MDB with a pool size of 100. Dispatch several messages to the outbound queue, setting the JMSXGroupID property on the message to be the same value each time. In the MDB's onMessage method print out the MDBs toString (don't override toString) and you should see something that looks like: > OutQueueProcessorBean@19a7266 > Observe two things: > a) Many messages are processed in parallel > b) Many different values will occur after the @ in the above message, denoting that more than on MDB instance is being handed messages. > The correct behavior would be to dispatch messages with the same group id to the same MDB instance in sequence. This would allow messages from different groups to be processed in parallel, but messages in any one group would be processed serially, in the order in which they were placed into the queue. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.