activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jstrac...@apache.org
Subject svn commit: r360111 - /incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/transport/stomp/Connect.java
Date Fri, 30 Dec 2005 15:55:22 GMT
Author: jstrachan
Date: Fri Dec 30 07:55:20 2005
New Revision: 360111

URL: http://svn.apache.org/viewcvs?rev=360111&view=rev
Log:
allows for the specifying of ActiveMQ specific connection headers

Modified:
    incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/transport/stomp/Connect.java

Modified: incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/transport/stomp/Connect.java
URL: http://svn.apache.org/viewcvs/incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/transport/stomp/Connect.java?rev=360111&r1=360110&r2=360111&view=diff
==============================================================================
--- incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/transport/stomp/Connect.java
(original)
+++ incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/transport/stomp/Connect.java
Fri Dec 30 07:55:20 2005
@@ -25,6 +25,7 @@
 import org.apache.activemq.command.ProducerInfo;
 import org.apache.activemq.command.Response;
 import org.apache.activemq.command.SessionInfo;
+import org.apache.activemq.util.IntrospectionSupport;
 
 class Connect implements StompCommand {
     private HeaderParser headerParser = new HeaderParser();
@@ -45,6 +46,9 @@
         String clientId = headers.getProperty(Stomp.Headers.Connect.CLIENT_ID);
         
         final ConnectionInfo connectionInfo = new ConnectionInfo();
+        
+        IntrospectionSupport.setProperties(connectionInfo, headers, "activemq.");
+        
         connectionInfo.setConnectionId(format.getConnectionId());
         if( clientId!=null )
             connectionInfo.setClientId(clientId);



Mime
View raw message