Return-Path: Delivered-To: apmail-activemq-dev-archive@www.apache.org Received: (qmail 11817 invoked from network); 24 May 2010 15:19:14 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 24 May 2010 15:19:14 -0000 Received: (qmail 7930 invoked by uid 500); 24 May 2010 15:19:14 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 7905 invoked by uid 500); 24 May 2010 15:19:14 -0000 Mailing-List: contact dev-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@activemq.apache.org Delivered-To: mailing list dev@activemq.apache.org Received: (qmail 7897 invoked by uid 99); 24 May 2010 15:19:14 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 24 May 2010 15:19:14 +0000 X-ASF-Spam-Status: No, hits=-1315.7 required=10.0 tests=ALL_TRUSTED,AWL X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 24 May 2010 15:19:13 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o4OFIrqE008980 for ; Mon, 24 May 2010 15:18:53 GMT Message-ID: <4316645.2361274714333096.JavaMail.jira@thor> Date: Mon, 24 May 2010 11:18:53 -0400 (EDT) From: "Timothy Bish (JIRA)" To: dev@activemq.apache.org Subject: [jira] Resolved: (AMQNET-253) STOMP: Expiration date of message are corrupt if the producer 'timestamping' is disabled In-Reply-To: <21712191.971274447508609.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: ae95407df07c98740808b2ef9da0087c [ https://issues.apache.org/activemq/browse/AMQNET-253?page=3Dcom.atla= ssian.jira.plugin.system.issuetabpanels:all-tabpanel ] Timothy Bish resolved AMQNET-253. --------------------------------- Fix Version/s: 1.3.0 Resolution: Fixed I believe I've fixed this in Trunk so that it works the way you'd expect. = I also fixed the send methods such that they now honor the TimeToLive setti= ng in MessageProducer which defaults to Zero of course. > STOMP: Expiration date of message are corrupt if the producer 'timestampi= ng' is disabled > -------------------------------------------------------------------------= --------------- > > Key: AMQNET-253 > URL: https://issues.apache.org/activemq/browse/AMQNET-253 > Project: ActiveMQ .Net > Issue Type: Bug > Components: NMS > Affects Versions: 1.2.0 > Reporter: Andreas L=C3=A4ndle > Assignee: Timothy Bish > Priority: Minor > Fix For: 1.3.0 > > > Please Note: Since NMS has dependencies between the NMSTimestamp and NMST= imeToLive properties - Disabling the timestamps on the producer results in = corrupted expiration dates of the messages! > Reproduction: > Set the TTL of a message to 1 hour - send this message via a producer whi= ch has DisableMessageTimestamp=3Dtrue. > Now take a look at the "expires" field of the transfered message - it's v= alue is all to small (and so the broker would discard the message immediate= ly). > (previous to the fix for https://issues.apache.org/activemq/browse/AMQNET= -245 the TimeStamp of a message was set during construction - so the interc= onnection of Timestamp and TTL wasn't so obvious) > Workaround: > I have worked around this issue with a dirty hack - i just bypass the TTL= -Timespan. > var stompMessage =3D nmsMessage as BaseMessage; > if (stompMessage !=3D null) > { stompMessage.Expiration =3D DateUtils.ToJavaTimeUtc(myExpirationDate); = }=20 > Please let me know if i was unclear or if you need more information. --=20 This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.