You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by ta...@apache.org on 2010/08/26 22:23:20 UTC
svn commit: r989915 -
/activemq/activemq-dotnet/Apache.NMS.Stomp/trunk/src/main/csharp/Util/StompMessageTransformation.cs
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()