Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 59554 invoked from network); 6 Aug 2008 05:07:10 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 6 Aug 2008 05:07:10 -0000 Received: (qmail 58901 invoked by uid 500); 6 Aug 2008 05:07:08 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 58879 invoked by uid 500); 6 Aug 2008 05:07: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 58868 invoked by uid 99); 6 Aug 2008 05:07:08 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Aug 2008 22:07:08 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of enrico.teotti@gmail.com designates 209.85.132.247 as permitted sender) Received: from [209.85.132.247] (HELO an-out-0708.google.com) (209.85.132.247) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Aug 2008 05:06:11 +0000 Received: by an-out-0708.google.com with SMTP id c28so656488ana.65 for ; Tue, 05 Aug 2008 22:06:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=WTjrddYtfy78xIQozN0uVXnagz2JwSsw6qwoWN8zUP8=; b=FB44vrsYLavqLPw9Aa7UUK8EB7R7+nEXNGTe4ITthW57xG25tN134LOsIEGL0LxE9D g1TTLRIqe9In4n9lCLGvYiKUyxUrJNS6WqmseCn2JfHetHlckV4y564ARKa9bx0Vz9lt ARCa9N/rQ9iBv7gUUwuLmDRLYy5wn14Q8r1Pk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=M68V8aDuX8BWLPj7wmMlK2UlgM+tlfOVWKOHsk5jJ43dWisk/pS+XMgEBEeBT1yCnq cn9RctvRs12J7kg3f9nZ/18hbrk3HNB51duKvkZQfh0AIORv2TygkDHKaKr8ob+g9PsH atRZPqLimHLpvGPWvXC02mZtTJzaBuw4gCark= Received: by 10.100.5.13 with SMTP id 13mr2711695ane.65.1217999180114; Tue, 05 Aug 2008 22:06:20 -0700 (PDT) Received: by 10.100.32.13 with HTTP; Tue, 5 Aug 2008 22:06:20 -0700 (PDT) Message-ID: Date: Wed, 6 Aug 2008 15:06:20 +1000 From: "Enrico Teotti" To: users@activemq.apache.org Subject: Re: stomp and message expiration In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: X-Virus-Checked: Checked by ClamAV on apache.org I've found the answer: http://markmail.org/message/fvef2ur5dim6vjkx "The expires property should be set to the time of expiration (in millis) instead of the span to now. " So in my tests I am going to add some milliseconds to System.currentTimeMillis(). Cheers, Enrico 2008/8/6 Enrico Teotti : > Hi, > I am doing some tests with a standalone activemq broker and STOMP via telnet. > > I set up a producer and consumer and everything works fine. But when I send: > > SEND > destination:/queue/FOO.BAR > expires:20000 > > expires in 20s > ^@ > > the consumer doesn't receive it, instead (checking with jconsole) the > message goes in the DeadLetterQueue. > > When I (don't know why) tried: > > SEND > destination:/queue/FOO.BAR > expires:2000000000000 > > it was a big surprise for me to see the message received by the consumer :-) > Isn't the expires value in the producer's message header supposed to > be in milliseconds? > > Thanks, > Enrico > > > -- > Enrico Teotti > IT consultant, accessible web sites and web applications > Sydney, NSW, Australia > enrico.teotti@gmail.com > mobile (IT) +393286590765 > mobile (AU) +00610416748450 > > http://www.teotti.com > -- Enrico Teotti IT consultant, accessible web sites and web applications Sydney, NSW, Australia enrico.teotti@gmail.com mobile (IT) +393286590765 mobile (AU) +00610416748450 http://www.teotti.com