Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 63622 invoked from network); 21 Aug 2008 21:35:23 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 21 Aug 2008 21:35:23 -0000 Received: (qmail 2825 invoked by uid 500); 21 Aug 2008 21:35:21 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 2801 invoked by uid 500); 21 Aug 2008 21:35:21 -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 2790 invoked by uid 99); 21 Aug 2008 21:35:21 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 21 Aug 2008 14:35:20 -0700 X-ASF-Spam-Status: No, hits=0.2 required=10.0 tests=SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of rajdavies@gmail.com designates 64.233.182.189 as permitted sender) Received: from [64.233.182.189] (HELO nf-out-0910.google.com) (64.233.182.189) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 21 Aug 2008 21:34:22 +0000 Received: by nf-out-0910.google.com with SMTP id g16so72444nfd.16 for ; Thu, 21 Aug 2008 14:34:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:from:to :in-reply-to:content-type:content-transfer-encoding:mime-version :subject:date:references:x-mailer; bh=2qdI4MrVYbUsPQJjv76dBKdLxByTC7F4nVzbFNXDRY4=; b=i3pyKOzBViXBMM9S+TtLr3PzOrh3jINNNdo3Zn3+RYGfQiNWz2R2BuZbmC/OAwAsEn /RKjM5iw54ubAU6KsPY0D9aasYONZQMyNlUjIsh33GFHNwjfFk6/RobxN8eltw7Rp1aq qO0f7HXMSb5ZMAtlK4kAW2jJfz+i2rLanCwuA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:from:to:in-reply-to:content-type :content-transfer-encoding:mime-version:subject:date:references :x-mailer; b=M3C8wRFRP1o3BKJhIkNnUOz1Qm20e3fjvFhBOnVTxVzQJ5IAbZ88f1Z0B0yorRsyS1 5baSs/WwQRVCQrEaWygnkyOEbhPS0A9IGBLV63CbCm6nTZpNzmvfwLc01wLLsYKDowj9 yZ8a31itNAaEwtCDRq037adfMDd9womJqV/IE= Received: by 10.210.102.12 with SMTP id z12mr319740ebb.187.1219354473670; Thu, 21 Aug 2008 14:34:33 -0700 (PDT) Received: from ?192.168.1.251? ( [86.144.172.20]) by mx.google.com with ESMTPS id m5sm2036621gve.3.2008.08.21.14.34.31 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 21 Aug 2008 14:34:32 -0700 (PDT) Message-Id: From: Rob Davies To: users@activemq.apache.org In-Reply-To: <19088116.post@talk.nabble.com> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v928.1) Subject: Re: LIFO (not FIFO) queues Date: Thu, 21 Aug 2008 22:34:29 +0100 References: <19088116.post@talk.nabble.com> X-Mailer: Apple Mail (2.928.1) X-Virus-Checked: Checked by ClamAV on apache.org On 21 Aug 2008, at 13:52, Artur Siekielski wrote: > > Hi. > Is it possible to change JMS queues semantics to Last In, First Out > (ie. > stack)? Would it be difficult to patch ActiveMQ sources to achieve > this? > > Another solution to our problem is using priority queues. But ActiveMQ > doesn't support priorities. Only Oracle's AQs support this... > > A bigger picture: we are using JMS for grid computations, task have > subtasks > and subtasks have to be computed first. It would be nice to have a > general > solution for this using JMS. > -- > View this message in context: http://www.nabble.com/LIFO-%28not-FIFO%29-queues-tp19088116p19088116.html > Sent from the ActiveMQ - User mailing list archive at Nabble.com. > Nice idea! Priorities for messages on Queues are really hard to implement - but a potential option would be to have different priority Queues - that level of granularity is a lot easier - I'll investigate it. The LIFO does seem a little wacky though. cheers, Rob Rob Davies http://rajdavies.blogspot.com/