Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 75344 invoked from network); 17 Sep 2007 21:47:39 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 17 Sep 2007 21:47:39 -0000 Received: (qmail 94759 invoked by uid 500); 17 Sep 2007 21:47:31 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 94734 invoked by uid 500); 17 Sep 2007 21:47:31 -0000 Mailing-List: contact users-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@activemq.apache.org Delivered-To: mailing list users@activemq.apache.org Received: (qmail 94725 invoked by uid 99); 17 Sep 2007 21:47:30 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 17 Sep 2007 14:47:30 -0700 X-ASF-Spam-Status: No, hits=2.6 required=10.0 tests=DNS_FROM_OPENWHOIS,SPF_HELO_PASS,SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 17 Sep 2007 21:49:21 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1IXOQt-0001IC-Ua for users@activemq.apache.org; Mon, 17 Sep 2007 14:47:07 -0700 Message-ID: <12745847.post@talk.nabble.com> Date: Mon, 17 Sep 2007 14:47:07 -0700 (PDT) From: "wojtek.z" To: users@activemq.apache.org Subject: Retrieving Messages Out of Sequence MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: wojtek.zinczuk@autodata.net X-Virus-Checked: Checked by ClamAV on apache.org Howdy We are currently experiencing a bit of a problem with one of our applications which relates to messages being retrieved from the queue not in order / sequence. The basic idea is as follows We create 3 sets of messages Each message is tagged to a unique group Each message is tagged with a sequence number of 1 - 3 Each message is sent to the queue separately Now when we view the queue the messages are lined up in order ( ie Group A = 1 , 2 , 3 ) When we retrieve the messages though there is a very high chance that the messages dont come off the queue in the order they were put on there. If we have to sets of 3 messages ( from group A / B ) they tend to come across along the lines of A1 , B1 , A3 , B3 , A2 , B2. Now sometimes they shuffle around sometimes they come of the queue properly ( mostly only when 1 set of messages is active any more then that and the order breaks ) The way we retrieve the messages is also very simple, we simply poll the queue and grab each message one by one. I did some reading and there were a few bugs reported back in version 4.0.x that mentioned these problems. I tried this exercise with versions 4.0.1 and 4.1.1 and neither seem to work correctly. Is there a work around to this problem or maybe I am just doing something very silly that is causing this. Anyway if someone could let me know that would be most beneficial. Thanks ! -- View this message in context: http://www.nabble.com/Retrieving-Messages-Out-of-Sequence-tf4470245s2354.html#a12745847 Sent from the ActiveMQ - User mailing list archive at Nabble.com.