activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chir...@apache.org
Subject svn commit: r1365772 - /activemq/activemq-apollo/trunk/apollo-stomp/src/main/scala/org/apache/activemq/apollo/stomp/StompFrame.scala
Date Wed, 25 Jul 2012 21:28:33 GMT
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 {



Mime
View raw message