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/29 18:06:53 UTC
svn commit: r1366867 - in
/activemq/activemq-apollo/trunk/apollo-stomp/src/main/scala/org/apache/activemq/apollo/stomp:
StompFrame.scala StompProtocolHandler.scala
Author: chirino
Date: Sun Jul 29 16:06:53 2012
New Revision: 1366867
URL: http://svn.apache.org/viewvc?rev=1366867&view=rev
Log:
Let stomp clients know which virtual host they connected to.
Modified:
activemq/activemq-apollo/trunk/apollo-stomp/src/main/scala/org/apache/activemq/apollo/stomp/StompFrame.scala
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/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=1366867&r1=1366866&r2=1366867&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 Sun Jul 29 16:06:53 2012
@@ -408,6 +408,7 @@ object Stomp {
val RESPONSE_ID = ascii("response-id")
val SERVER = ascii("server")
val REDIRECT_HEADER = ascii("redirect")
+ val HOST_ID = ascii("host-id")
val BROWSER = ascii("browser")
val BROWSER_END = ascii("browser-end")
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=1366867&r1=1366866&r2=1366867&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 Sun Jul 29 16:06:53 2012
@@ -972,6 +972,7 @@ class StompProtocolHandler extends Proto
var connected_headers = ListBuffer((VERSION, protocol_version))
connected_headers += SERVER->encode_header("apache-apollo/"+Broker.version)
+ connected_headers += HOST_ID->encode_header(host.id)
connected_headers += SESSION->encode_header(session_id.get)
val outbound_heart_beat_header = ascii("%d,%d".format(outbound_heartbeat,inbound_heartbeat))