activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject svn commit: r548330 - /activemq/activemq-cpp/trunk/src/main/activemq/transport/MockTransportFactory.cpp
Date Mon, 18 Jun 2007 11:50:30 GMT
Author: tabish
Date: Mon Jun 18 04:50:29 2007
New Revision: 548330

URL: http://svn.apache.org/viewvc?view=rev&rev=548330
Log:
http://issues.apache.org/activemq/browse/AMQCPP-130

Modified:
    activemq/activemq-cpp/trunk/src/main/activemq/transport/MockTransportFactory.cpp

Modified: activemq/activemq-cpp/trunk/src/main/activemq/transport/MockTransportFactory.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/main/activemq/transport/MockTransportFactory.cpp?view=diff&rev=548330&r1=548329&r2=548330
==============================================================================
--- activemq/activemq-cpp/trunk/src/main/activemq/transport/MockTransportFactory.cpp (original)
+++ activemq/activemq-cpp/trunk/src/main/activemq/transport/MockTransportFactory.cpp Mon Jun
18 04:50:29 2007
@@ -17,6 +17,7 @@
 
 #include "MockTransportFactory.h"
 #include <activemq/connector/stomp/StompResponseBuilder.h>
+#include <activemq/connector/openwire/OpenWireResponseBuilder.h>
 #include <activemq/transport/MockTransport.h>
 #include <activemq/transport/MockTransportFactory.h>
 #include <activemq/transport/TransportFactoryMapRegistrar.h>
@@ -41,9 +42,12 @@
 
     MockTransport::ResponseBuilder* builder = NULL;
 
-    if( wireFormat == "stomp" )
-    {
+    if( wireFormat == "stomp" ) {
         builder = new connector::stomp::StompResponseBuilder(
+            properties.getProperty(
+                "transport.sessionId", "testSessionId" ) );
+    } else if( wireFormat == "openwire" ) {
+        builder = new connector::openwire::OpenWireResponseBuilder(
             properties.getProperty(
                 "transport.sessionId", "testSessionId" ) );
     }



Mime
View raw message