Return-Path: Delivered-To: apmail-geronimo-activemq-users-archive@www.apache.org Received: (qmail 94013 invoked from network); 28 Apr 2006 17:15:36 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 28 Apr 2006 17:15:36 -0000 Received: (qmail 19176 invoked by uid 500); 28 Apr 2006 17:15:35 -0000 Delivered-To: apmail-geronimo-activemq-users-archive@geronimo.apache.org Received: (qmail 19150 invoked by uid 500); 28 Apr 2006 17:15:35 -0000 Mailing-List: contact activemq-users-help@geronimo.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: activemq-users@geronimo.apache.org Delivered-To: mailing list activemq-users@geronimo.apache.org Received: (qmail 19140 invoked by uid 99); 28 Apr 2006 17:15:34 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 28 Apr 2006 10:15:34 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of james.strachan@gmail.com designates 66.249.92.168 as permitted sender) Received: from [66.249.92.168] (HELO uproxy.gmail.com) (66.249.92.168) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 28 Apr 2006 10:15:32 -0700 Received: by uproxy.gmail.com with SMTP id m3so1579762ugc for ; Fri, 28 Apr 2006 10:15:10 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=swQIKR7mrDJzpd/M1Z9MBoATSPoxqHlqrqu35RRy2yJ8E1asxk2yICaMrZO5el/EfHaseZ6W1yhNDuZ6wI6Of52UGH8PmbFaUz/epLr9vQbk1jpurZr/cto+7QEWJFAI7u//PQQfU3c7h4rW6yL9PAtka6vlwYGPxdehn97mlbA= Received: by 10.78.39.16 with SMTP id m16mr464828hum; Fri, 28 Apr 2006 10:15:10 -0700 (PDT) Received: by 10.78.27.13 with HTTP; Fri, 28 Apr 2006 10:15:10 -0700 (PDT) Message-ID: Date: Fri, 28 Apr 2006 18:15:10 +0100 From: "James Strachan" To: activemq-users@geronimo.apache.org Subject: Re: Delay Message Processing In-Reply-To: <4143283.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <4143283.post@talk.nabble.com> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N I'd use a scheduler (like Quartz) to send the message http://www.opensymphony.com/quartz/ we currently don't have any efficient ways to send a message for dispatching in the future. It wouldn't be too hard to add a special Broker Interceptor to deal with 'future messages' where some JMS message header could be used to define the time at which a message should be dispatched. Then internally the interceptor would filter out these messages and create a new timer event in Quartz. http://activemq.org/Interceptors A simple implementation could just be to persist the message inside quartz as the timer event state; a more clever and efficient implementation would be to use ActiveMQ for the persistence and then use the timer event to start the dispatching of the message. Though this might involve some change to the ActiveMQ broker code to be able to persist messages that should not be dispatched. On 4/28/06, osian wrote: > > Is there any way in which to tell ActiveMQ when producing a message that = this > message is not to be processed until a set date/time. I have considered > validating the message, and if it is not ready to process, produce a new > message (and this will go on until it is ready to be processed), but this= is > a large overhead for a simple problem. Any advice would be greatfully > appreciated, > > Cheers, > Osh > -- > View this message in context: http://www.nabble.com/Delay-Message-Process= ing-t1525423.html#a4143283 > Sent from the ActiveMQ - User forum at Nabble.com. > > -- James ------- http://radio.weblogs.com/0112098/