Skip to content
Permalink
Browse files
https://issues.apache.org/activemq/browse/AMQNET-176
Added an OnMessageRollback method to the Message to allow for the increment of the RedeliveryCounter
  • Loading branch information
Timothy A. Bish committed Oct 27, 2009
1 parent 6787e10 commit cd5d8bf2d43a36484a2fec9c3dbcae9ffe831a9c
Showing 2 changed files with 6 additions and 1 deletion.
@@ -61,7 +61,7 @@
</mailingLists>

<properties>
<activemq-version>5.3-SNAPSHOT</activemq-version>
<activemq-version>5.3.0</activemq-version>
<projectName>Apache NMS.ActiveMQ</projectName>
<annogen-version>0.1.0</annogen-version>
<ant-version>1.6.2</ant-version>
@@ -88,6 +88,11 @@ protected void generateAdditonalMembers( PrintWriter out ) {
out.println(" this.ReadOnlyBody = true;");
out.println(" }");
out.println("");
out.println(" public virtual void OnMessageRollback()" );
out.println(" {");
out.println(" this.redeliveryCounter++;" );
out.println(" }");
out.println("");
out.println(" public bool IsExpired()");
out.println(" {");
out.println(" return this.expiration == 0 ? false : DateTime.UtcNow > DateUtils.ToDateTimeUtc(this.expiration);");

0 comments on commit cd5d8bf

Please sign in to comment.