activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chir...@apache.org
Subject svn commit: r1311389 - /activemq/activemq-apollo/trunk/apollo-stomp/src/main/scala/org/apache/activemq/apollo/stomp/StompProtocolHandler.scala
Date Mon, 09 Apr 2012 19:27:42 GMT
Author: chirino
Date: Mon Apr  9 19:27:42 2012
New Revision: 1311389

URL: http://svn.apache.org/viewvc?rev=1311389&view=rev
Log:
Fixes APLO-185 - Apollo can send STOMP messages without a destination header (advisories)

Modified:
    activemq/activemq-apollo/trunk/apollo-stomp/src/main/scala/org/apache/activemq/apollo/stomp/StompProtocolHandler.scala

Modified: activemq/activemq-apollo/trunk/apollo-stomp/src/main/scala/org/apache/activemq/apollo/stomp/StompProtocolHandler.scala
URL: http://svn.apache.org/viewvc/activemq/activemq-apollo/trunk/apollo-stomp/src/main/scala/org/apache/activemq/apollo/stomp/StompProtocolHandler.scala?rev=1311389&r1=1311388&r2=1311389&view=diff
==============================================================================
--- activemq/activemq-apollo/trunk/apollo-stomp/src/main/scala/org/apache/activemq/apollo/stomp/StompProtocolHandler.scala
(original)
+++ activemq/activemq-apollo/trunk/apollo-stomp/src/main/scala/org/apache/activemq/apollo/stomp/StompProtocolHandler.scala
Mon Apr  9 19:27:42 2012
@@ -404,6 +404,7 @@ class StompProtocolHandler extends Proto
         var headers =  (MESSAGE_ID -> ascii(session_id.get+message_id_counter)) :: Nil
         headers ::= (CONTENT_TYPE -> ascii(content_type))
         headers ::= (CONTENT_LENGTH -> ascii(body.length().toString))
+        headers ::= (DESTINATION -> encode_header(destination_parser.encode_destination(delivery.sender)))
         StompFrame(MESSAGE, headers, BufferContent(body))
       }
 



Mime
View raw message