From users-return-29724-apmail-activemq-users-archive=activemq.apache.org@activemq.apache.org Mon Dec 26 12:40:27 2011 Return-Path: X-Original-To: apmail-activemq-users-archive@www.apache.org Delivered-To: apmail-activemq-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B75FA91A5 for ; Mon, 26 Dec 2011 12:40:27 +0000 (UTC) Received: (qmail 48663 invoked by uid 500); 26 Dec 2011 12:40:26 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 48632 invoked by uid 500); 26 Dec 2011 12:40:26 -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 48624 invoked by uid 99); 26 Dec 2011 12:40:26 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 26 Dec 2011 12:40:26 +0000 X-ASF-Spam-Status: No, hits=2.8 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS,URI_HEX X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of sslavic@gmail.com designates 74.125.82.45 as permitted sender) Received: from [74.125.82.45] (HELO mail-ww0-f45.google.com) (74.125.82.45) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 26 Dec 2011 12:40:21 +0000 Received: by wgbds13 with SMTP id ds13so16159326wgb.14 for ; Mon, 26 Dec 2011 04:39:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=iPcusy+Dwq1RzZP4zRbDBLRJwIDncTsCE5WeBv4ELDY=; b=jY3YmxgJ0LR/X7t/2OAS3WaTPUeFhXMQAM/3Tn+JMr0oYn6M2TL+LsM6hizKCVM3Oq 9qnYUoKoAufM2IgqtJN21Tc1Q1ook1tZsRCajTtPrPVXmOR+pykltFc8blmRZNY/ZTDD PChu1D29MM81qf1iGWUVAvcvTi47JHMdApUv4= MIME-Version: 1.0 Received: by 10.227.202.211 with SMTP id ff19mr24063191wbb.15.1324903199602; Mon, 26 Dec 2011 04:39:59 -0800 (PST) Received: by 10.180.97.134 with HTTP; Mon, 26 Dec 2011 04:39:59 -0800 (PST) In-Reply-To: References: <1324897606126-4234322.post@n4.nabble.com> Date: Mon, 26 Dec 2011 13:39:59 +0100 Message-ID: Subject: Re: how can i config to let amq remove the queue message when timeout From: =?UTF-8?Q?Stevo_Slavi=C4=87?= To: users@activemq.apache.org Content-Type: multipart/alternative; boundary=000e0cd5b81c92f88d04b4fe103c --000e0cd5b81c92f88d04b4fe103c Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable There is related ActiveMQ FAQ entry: http://activemq.apache.org/how-do-i-set-the-message-expiration.html Regards, Stevo. On Mon, Dec 26, 2011 at 12:30 PM, Stevo Slavi=C4=87 wro= te: > Since you're using Spring, and using JmsTemplate to send messages, make > use of "void org.springframework.jms.core.JmsTemplate.send(Destination > destination, MessageCreator messageCreator) throws JmsException" and > implement MessageCreator which will set JMSExpiration > > sendTimeout and receiveTimeout have nothing to do with Message > JMSExpiration > > Regards, > Stevo. > > > On Mon, Dec 26, 2011 at 12:06 PM, eric wen wrote: > >> hi, >> i have a program which receive client request and then transfer the >> message via amq to a processor which watches on the specified queue. >> However, the processor may not start up while the cilent request arrives= , >> then amq will then store this message temporarily, and after the process= or >> start up, amq will send this store message to the processor. >> >> what i'm wondering is, how can i let amq to remove this temporary >> message after some time the processor is not available or let amq do not >> send this 'timeout' temporary message to the processor when is started. >> >> i had tried to set the sendTimeout property on the ConnectionFactory >> which looks like this: >> >> > class=3D"org.apache.activemq.ActiveMQConnectionFactory"> >> >> >> >> >> >> >> but it seems doesn't work,wish your reply >> >> eric wen >> >> -- >> View this message in context: >> http://activemq.2283324.n4.nabble.com/how-can-i-config-to-let-amq-remove= -the-queue-message-when-timeout-tp4234322p4234322.html >> Sent from the ActiveMQ - User mailing list archive at Nabble.com. >> > > --000e0cd5b81c92f88d04b4fe103c--