activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject svn commit: r830317 - in /activemq/activemq-dotnet/Apache.NMS.ActiveMQ.Openwire.Generator: pom.xml src/main/java/org/apache/activemq/nms/openwire/tool/commands/MessageGenerator.java
Date Tue, 27 Oct 2009 19:59:34 GMT
Author: tabish
Date: Tue Oct 27 19:59:34 2009
New Revision: 830317

URL: http://svn.apache.org/viewvc?rev=830317&view=rev
Log:
https://issues.apache.org/activemq/browse/AMQNET-176

Added an OnMessageRollback method to the Message to allow for the increment of the RedeliveryCounter

Modified:
    activemq/activemq-dotnet/Apache.NMS.ActiveMQ.Openwire.Generator/pom.xml
    activemq/activemq-dotnet/Apache.NMS.ActiveMQ.Openwire.Generator/src/main/java/org/apache/activemq/nms/openwire/tool/commands/MessageGenerator.java

Modified: activemq/activemq-dotnet/Apache.NMS.ActiveMQ.Openwire.Generator/pom.xml
URL: http://svn.apache.org/viewvc/activemq/activemq-dotnet/Apache.NMS.ActiveMQ.Openwire.Generator/pom.xml?rev=830317&r1=830316&r2=830317&view=diff
==============================================================================
--- activemq/activemq-dotnet/Apache.NMS.ActiveMQ.Openwire.Generator/pom.xml (original)
+++ activemq/activemq-dotnet/Apache.NMS.ActiveMQ.Openwire.Generator/pom.xml Tue Oct 27 19:59:34
2009
@@ -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>

Modified: activemq/activemq-dotnet/Apache.NMS.ActiveMQ.Openwire.Generator/src/main/java/org/apache/activemq/nms/openwire/tool/commands/MessageGenerator.java
URL: http://svn.apache.org/viewvc/activemq/activemq-dotnet/Apache.NMS.ActiveMQ.Openwire.Generator/src/main/java/org/apache/activemq/nms/openwire/tool/commands/MessageGenerator.java?rev=830317&r1=830316&r2=830317&view=diff
==============================================================================
--- activemq/activemq-dotnet/Apache.NMS.ActiveMQ.Openwire.Generator/src/main/java/org/apache/activemq/nms/openwire/tool/commands/MessageGenerator.java
(original)
+++ activemq/activemq-dotnet/Apache.NMS.ActiveMQ.Openwire.Generator/src/main/java/org/apache/activemq/nms/openwire/tool/commands/MessageGenerator.java
Tue Oct 27 19:59:34 2009
@@ -88,6 +88,11 @@
         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);");



Mime
View raw message