Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 56764 invoked from network); 28 Jun 2010 17:16:09 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 28 Jun 2010 17:16:09 -0000 Received: (qmail 22652 invoked by uid 500); 28 Jun 2010 17:16:09 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 22598 invoked by uid 500); 28 Jun 2010 17:16:08 -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 22589 invoked by uid 99); 28 Jun 2010 17:16:08 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 28 Jun 2010 17:16:08 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FREEMAIL_FROM,SPF_HELO_PASS,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL 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, 28 Jun 2010 17:16:02 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1OTHvp-0000DS-SE for users@activemq.apache.org; Mon, 28 Jun 2010 10:15:41 -0700 Message-ID: <29008791.post@talk.nabble.com> Date: Mon, 28 Jun 2010 10:15:41 -0700 (PDT) From: cobrien To: users@activemq.apache.org Subject: Re: ActiveMQ mixes up order of messages while receiving them from Camel In-Reply-To: <29008581.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: clark.obrien@ttmsolutions.com References: <29008581.post@talk.nabble.com> X-Virus-Checked: Checked by ClamAV on apache.org Hi, Can you describe a little more your Queue topology and configuration- perhaps even share your config file(s). Not all queue topologies are order preserving! -clark Clark www.ttmsolutions.com ActiveMQ reference guide at http://bit.ly/AMQRefGuide sonicBasher wrote: > > At the end of my camel route I have a following class which I use to put > messages in ActiveMQ: > > public class MessageProducer { > > private ProducerTemplate template = null; > > public MessageProducer(ProducerTemplate template) { > this.template = template; > } > > public void produce(@Body List listOfEttexObj) { > System.out.println("Entered produce() method"); > XStream x = new XStream(); > List listOfEttexObjects = > (List)listOfEttexObj; > for (int q = 0; q < listOfEttexObjects.size(); q++) { > EttexObject eo = listOfEttexObjects.get(q); > template.sendBody("jms:" + eo.getAccountName() + > "_2",x.toXML(eo)); > System.out.println("Sent type: " + eo.getMessage().getType()); > } > } > } > > > *XStream is just a library for converting objects to XML, has nothing to > do with anything > **EttexObject is my POJO class > > Now, I noticed that whenever I send objects (from the list passed as an > argument) to the queues, which I implicitly create using ProducerTemplate, > most of the time the order of delivered messages is correct, but there's > always one queue, which gets the mixed up messages. I can't really figure > out why. I tried to use the requestBody method, instead of sendBody, to no > avail. I also double checked the lists that come in - the order of objects > inside them is fine. Honestly I'm kind of stuck here. Will be grateful for > any tips. > > regards > > p.s. Can synchronous/asynchronous ActiveMQ mode have anything to do with > my problem? > -- View this message in context: http://old.nabble.com/ActiveMQ-mixes-up-order-of-messages-while-receiving-them-from-Camel-tp29008581p29008791.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.