You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by ch...@apache.org on 2012/07/25 23:28:33 UTC

svn commit: r1365772 - /activemq/activemq-apollo/trunk/apollo-stomp/src/main/scala/org/apache/activemq/apollo/stomp/StompFrame.scala

Author: chirino
Date: Wed Jul 25 21:28:33 2012
New Revision: 1365772

URL: http://svn.apache.org/viewvc?rev=1365772&view=rev
Log:
Handle the JMSDeliveryMode selector property correctly.

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

Modified: activemq/activemq-apollo/trunk/apollo-stomp/src/main/scala/org/apache/activemq/apollo/stomp/StompFrame.scala
URL: http://svn.apache.org/viewvc/activemq/activemq-apollo/trunk/apollo-stomp/src/main/scala/org/apache/activemq/apollo/stomp/StompFrame.scala?rev=1365772&r1=1365771&r2=1365772&view=diff
==============================================================================
--- activemq/activemq-apollo/trunk/apollo-stomp/src/main/scala/org/apache/activemq/apollo/stomp/StompFrame.scala (original)
+++ activemq/activemq-apollo/trunk/apollo-stomp/src/main/scala/org/apache/activemq/apollo/stomp/StompFrame.scala Wed Jul 25 21:28:33 2012
@@ -127,6 +127,13 @@ case class StompFrameMessage(frame:Stomp
         Some(id)
       case "JMSType" =>
         headerIndex.get(ascii("type"))
+      case "JMSDeliveryMode" =>
+        Some(ascii(
+          if( persistent )
+            "PERSISTENT"
+          else
+            "NON_PERSISTENT"
+        ))
       case _=>
         headerIndex.get(ascii(name))
     }) match {