activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject svn commit: r989915 - /activemq/activemq-dotnet/Apache.NMS.Stomp/trunk/src/main/csharp/Util/StompMessageTransformation.cs
Date Thu, 26 Aug 2010 20:23:20 GMT
Author: tabish
Date: Thu Aug 26 20:23:20 2010
New Revision: 989915

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

Throw an exception for StreamMessage conversion since Stomp can't send or receive them.

Modified:
    activemq/activemq-dotnet/Apache.NMS.Stomp/trunk/src/main/csharp/Util/StompMessageTransformation.cs

Modified: activemq/activemq-dotnet/Apache.NMS.Stomp/trunk/src/main/csharp/Util/StompMessageTransformation.cs
URL: http://svn.apache.org/viewvc/activemq/activemq-dotnet/Apache.NMS.Stomp/trunk/src/main/csharp/Util/StompMessageTransformation.cs?rev=989915&r1=989914&r2=989915&view=diff
==============================================================================
--- activemq/activemq-dotnet/Apache.NMS.Stomp/trunk/src/main/csharp/Util/StompMessageTransformation.cs
(original)
+++ activemq/activemq-dotnet/Apache.NMS.Stomp/trunk/src/main/csharp/Util/StompMessageTransformation.cs
Thu Aug 26 20:23:20 2010
@@ -55,9 +55,7 @@ namespace Apache.NMS.Stomp
 
         protected override IStreamMessage DoCreateStreamMessage()
         {
-            StreamMessage message = new StreamMessage();
-            message.Connection = this.connection;
-            return message;
+            throw new NotSupportedException("Stomp Cannot process Stream Messages");
         }
 
         protected override IMapMessage DoCreateMapMessage()



Mime
View raw message